<< back to your results
OAuth in action – Linq2Twitter
From: Pablo M. Cibraro (aka Cibrax) - 8/19/2009
The other day I came across a pretty cool project, Linq2Twitter, that basically implements a linq provider for consuming the Twitter REST Api. This project is not only interesting because it provides an intuitive model for incorporating Twitter calls into any existing application, but also because it shows how to use the OAuth authentication mode that the Twitter Api supports.
As it is common with other linq providers, this library provides a root class “TwitterContext” for executing queries or calling other services in the API.
So you can do things like this,
var twitterCxt = new TwitterContext();
var tweets =
from tweet in twitterCtx.Status
where tweet.Type == StatusType.Friends
select tweet;
tweets.ToList().ForEach(
tweet => Console.WriteLine(
"Friend: {0}\nTweet: {1}\n",
tweet.User.Name,
t
Featured Listings
View more: OAuth in action – Linq2Twitter