Skip to content

Instantly share code, notes, and snippets.

@tmyt
Created January 6, 2011 17:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmyt/768160 to your computer and use it in GitHub Desktop.
Save tmyt/768160 to your computer and use it in GitHub Desktop.
Azurea Script Sample
/*
選択されたユーザのホームからPost数を探してきて表示してみる API版(Require API Level:5-)
*/
System.addContextMenuHandler('Get tweets count', 0, function(id){
var st = TwitterService.status.get(id);
var xml = TwitterService.call('/users/show/' + st.user.screen_name + '.xml');
if(xml.match('<statuses_count>(\\d+)</statuses_count>')){
System.showNotice("@" + st.user.screen_name + "'s total tweets: " + RegExp.$1);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment