What is the best Twitter API wrapper/library for .NET? [closed]
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
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
TweetSharp looks like it should be a decent option as well.
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.