Skip to content

Instantly share code, notes, and snippets.

@markbeaton
Created January 16, 2012 06:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save markbeaton/1619355 to your computer and use it in GitHub Desktop.
Save markbeaton/1619355 to your computer and use it in GitHub Desktop.
Twitter user timeline parsing in c# using dynamic...
string json = new WebClient().DownloadString("https://api.twitter.com/1/statuses/user_timeline.json?screen_name=WeMakeApps");
dynamic tweets = new JavaScriptSerializer().DeserializeObject(json);
foreach (dynamic tweet in tweets)
{
Console.WriteLine(tweet["text"]);
Console.WriteLine(tweet["user"]["screen_name"]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment