Last active
August 29, 2015 14:25
-
-
Save tomauty/3b5493a1c4e1c172c9fe to your computer and use it in GitHub Desktop.
This file contains 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
// removed "limit" from query params | |
var url = "http://api.tumblr.com/v2/blog/manarecs.tumblr.com/posts?api_key=2Waj1PmWwaIcu49hUVPTb4WOwWNOp1uOkhP4vjn0Fe3g7zB7Ss"; | |
$.getJSON(url, function(results){ | |
// The latest post is last | |
var latest = results.reponse.posts.reverse()[0]; | |
// Make DOM element with this latest post data | |
// Not familiar enough with jQuery + page HTML to do this | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment