API : https://dev.twitter.com/rest/direct-messages/attaching-media
Here we have event json like
{
“event”: {
“type”: “message_create”,
“message_create”: {
“target”: {
“recipient_id”: “844385345234”
},
“message_data”: {
“text”: “Hello World!”,
“attachment”: {
“type”: “media”,
“media”: {
“id”: “12123234234”
}
}
}
}
}
}
With which param name we should generate authorization request header for this json? Any idea? Or no need to include this json to generate authorization header for this endpoint?
FYI : We are writing this json into post body in request.