Archived Forum Post

Index of archived forum posts

Question:

Twitter: OAuth direct message example

Dec 24 '12 at 12:25

Hi, i was waiting for this release :)

Just curious to know if you could provide a sample on how to send a direct message to a follower? I have seen the "tweet to own account" sample, but i am not sure how to extend it for a DM :-/


Accepted Answer

Chilkat isn't actually intimately familiar with the Twitter API. OAUTH v1 was implemented in a general way to make it easier to do the necessary cryptographic computations (canonicalizations, HMAC's, etc.) so that the Authorization header can easily be added, and this could apply not only to Twitter, but many other Web API's that use OAuth1.

Therefore, the answer to the question is that I don't really know. However, I found it easy to Google "Twitter API send direct message" to find this web page with information: https://dev.twitter.com/docs/api/1/post/direct_messages/new