Skip to content

Instantly share code, notes, and snippets.

@buccolo
Created March 14, 2011 17:12
Show Gist options
  • Save buccolo/869471 to your computer and use it in GitHub Desktop.
Save buccolo/869471 to your computer and use it in GitHub Desktop.
Gets the lastest 10 tweets from the user's Twitter.
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