Im writing a script for retrieving the twitter status from ID. To get the id from the public tweets is not my problem. I cannot find the ID from a Direct Message or dm conversation.
Twitter API documentation:
https://dev.twitter.com/rest/reference/get/direct_messages/show
GET direct_messages/show
Returns a single direct message, specified by an id parameter. Like the /1.1/direct_messages.format request, this method will include the user objects of the sender and recipient
Does anybody knows how to get the Id parameter from a Direct Message to construct a request for the api?
The script for getting the data is documented here and is working nicely.
Simplest PHP example for retrieving user_timeline with Twitter API version 1.1
Example Request GET
https://api.twitter.com/1.1/direct_messages/show.json?id=240136858829479936