Skip to content

Instantly share code, notes, and snippets.

@tomauty
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomauty/3b5493a1c4e1c172c9fe to your computer and use it in GitHub Desktop.
Save tomauty/3b5493a1c4e1c172c9fe to your computer and use it in GitHub Desktop.
// 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