POST for direct message Button

directmessages
api

#1

Hi guys,

We required the customer support agents to post a button in DM which navigates them to another website. Till now we were doing the API call via POST method and sending the request in a URL format for general direct message(https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/new-message).

But in the DM button API reference(https://developer.twitter.com/en/docs/direct-messages/buttons/api-reference/buttons), the example request shows in a JSOn format, My question will be do i need to send the request in JSOn format OR deserialize my JSOn and add in URL parameters and then send the request to twitter OR a third method. How will twitter accept my request?

A rookie for Salesforce twitter integration, plz help.

Thanks in Advance