What is the best Twitter API wrapper/library for .NET?

Viewed 37950

I'm looking for a way to programatically generate a twitter feed for a .NET application. Any recommendations as to a good wrapper for the twitter api to ease the work?

Boaz

8 Answers

Microsoft.Owin.Security.Twitter for authentication + custom C# code with HttpClient and Json.NET

Something like:

using (var client = new HttpClient())
{
    client.BaseAddress = new Uri("https://api.twitter.com/1.1/");
    client.DefaultRequestHeaders.Authorization = authValue;
    var response = await client.GetAsync("search/tweets.json");

    if (response.IsSuccessStatusCode)
    {
        var json = await response.Content.ReadAsStringAsync();
        var tweets = JsonConvert.DeserializeObject<Tweets>(json);
    }
}

Good read:

TweetSharp looks like it should be a decent option as well.

Here is a list of all the libraries listed on twitter's website.

Here is a link to Twitter's REST API documentation.

Here is a link to Twitters Streaming API documentation

All good answers, LinqToTwitter good. Also check out my post explaining the basics of using the Twitter API from C#/LINQ, including being aware of rate limits. (Which is important to understand).

http://stuff.seans.com/2009/04/04/a-simple-net-twitter-api-wrapper-using-linq/

Coming soon - a version of my code that automatically adjusts request speed to your rate limit. (Which is either 100/hr by default, or 20,000/hr if you or your site is "white listed").

You can also check out Twitteroo. But Yedda is better. I have a hobby Twitter client project which looks like Google Talk (named jata). It ca be found here in codeplex if you are interested.

Related