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
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:
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.
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").