Skip to content

Instantly share code, notes, and snippets.

@webmonger
webmonger / gist:4690423
Created February 1, 2013 09:54
.net Razor helper to be used with LinqToTwitter http://linqtotwitter.codeplex.com/ put the 4 oAuth keys for Single User Auth in your web.config and you've done you recieve a List<Status>
public static IList<Status> GetTwitterFeed(string screenName)
{
var auth = new SingleUserAuthorizer()
{
Credentials = new InMemoryCredentials
{
ConsumerKey =
ConfigurationManager.AppSettings["twitterConsumerKey"],
ConsumerSecret =
ConfigurationManager.AppSettings["twitterConsumerSecret"],