Created
March 14, 2011 17:12
-
-
Save buccolo/869471 to your computer and use it in GitHub Desktop.
Gets the lastest 10 tweets from the user's Twitter.
This file contains 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
var dsTweets = new Ext.data.JsonStore({ | |
fields : [{name: 'text', type: 'string'}], | |
proxy : new Ext.data.ScriptTagProxy({ | |
url : 'http://twitter.com/status/user_timeline/buccolo.json?count=10' | |
}) | |
}); | |
dsTweets.load({ callback: function(){ | |
var tweets = store.query(''); | |
Ext.iterate(tweets.items, function(item, index, all){ | |
console.log(item.data.text); | |
}); | |
}}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment