Skip to content

Instantly share code, notes, and snippets.

@mogya
Created January 18, 2011 08:18
Show Gist options
  • Save mogya/784127 to your computer and use it in GitHub Desktop.
Save mogya/784127 to your computer and use it in GitHub Desktop.
//get timeline
oAuthAdapter.send({
url:'https://api.twitter.com/1/statuses/home_timeline.json',
parameters:[
],
method:'GET',
onSuccess:function(response){
alert('got tweets.see info log.');
response = JSON.parse(response);
for(var i=0;i<response.length;i++){
var tweet = response[i];
Ti.API.info(tweet.user.name+':'+tweet.text);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment