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

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

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)