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

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:

  • Extending HttpClient with OAuth to Access Twitter (Feb, 2012)
  • Calling a Web API From a .NET Client (C#)
  • Official documentation: OAuth API, REST API, Streaming API

there is a linq to twitter project on codeplex:

http://www.codeplex.com/LinqToTwitter

Besides the Yedda library, you can read Pedro Santos' blog on his experience.


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

Tags:

.Net

Api

Twitter