Skip to content

Instantly share code, notes, and snippets.

@emkay
Created October 9, 2010 16:05
Show Gist options
  • Save emkay/618326 to your computer and use it in GitHub Desktop.
Save emkay/618326 to your computer and use it in GitHub Desktop.
YUI().use('node', 'gallery-yql', function (Y) {
new Y.yql('select * from twitter.user.timeline where id="someuser"', function (r) {
var len = r.query.results.statuses.status.length;
if (!r.error && len > 0) {
Y.one('#twitter-feed-title').setStyle('display', 'block');
var t = Y.one('#twitter-feed');
var status = r.query.results.statuses.status;
for (var i = 0; i < len; i++) {
t.append('<div class="status">'+status[i].user.name+'<p class="status">'+status[i].text+'</p></div>');
}
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment