Created
January 16, 2012 06:14
-
-
Save markbeaton/1619355 to your computer and use it in GitHub Desktop.
Twitter user timeline parsing in c# using dynamic...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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