Skip to content

Instantly share code, notes, and snippets.

@johnkoht
Created January 15, 2012 00:13
Show Gist options
  • Save johnkoht/1613511 to your computer and use it in GitHub Desktop.
Save johnkoht/1613511 to your computer and use it in GitHub Desktop.
Oi'vangelist API
$.ajax({
type : 'GET',
url : 'http://twitvangelist.kohsrv.net/leaderboard/combined.json', // this will give you the combined tweets and leaderboard
dataType : 'JSONP',
jsonpCallback : 'callbackfunction',
success : function(results) {
console.log(results.top3); // this will give you the top 3 from the leaderboard
console.log(results.tweets); // this will give you the a list of tweets with the hashtag
console.log( jQuery.parseJSON(results.tweets[0].original_tweet) );
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment