How do i use C# to tweet?


#1

Am doing an application for my website and is wondering how do i use the API to post a tweet ? Need some kind soul to enlighten me


#2

If you write your own code, you’ll have to write the OAuth part, which is documented at https://dev.twitter.com/docs/auth. You could use HttpClient to make the rest calls to the statuses/update endpoint, documented at https://dev.twitter.com/docs/api/1.1/post/statuses/update.

Alternatively, you can use a 3rd party library, listed at https://dev.twitter.com/docs/twitter-libraries. BTW, I wrote LINQ to Twitter - https://linqtotwitter.codeplex.com/, which contains technical documentation, FAQ, examples, and demo code. The downloadable source code has examples for both Web Forms and MVC.


#3

how to wtire OAuth