Skip to content

Instantly share code, notes, and snippets.

@mpociot
Created December 26, 2011 20:50
Show Gist options
  • Save mpociot/1522098 to your computer and use it in GitHub Desktop.
Save mpociot/1522098 to your computer and use it in GitHub Desktop.
Twitter module call
requestButton.addEventListener('click',function(e){
module.request({
params: {
screen_name: 'marcelpociot',
count: 10
},
url: "http://api.twitter.com/1/statuses/user_timeline.json",
method: 'get',
success: function(e){
alert(e);
},
error: function(e){
alert(e);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment