Created
January 15, 2012 00:13
-
-
Save johnkoht/1613511 to your computer and use it in GitHub Desktop.
Oi'vangelist API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.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