I'm trying to integrate a Tumblr blog into a website. Specifically I want to display the latest text post.
I have taken a look of Tumblr API and everything looks quite easy but I cannot make it work.
According to the documentation for Tumblr API v2 (http://www.tumblr.com/docs/en/api/v2) this is the call I need:
http://api.tumblr.com/v2/blog/blog.tumblr.com/posts/text?api_key=KEY&limit=1 and if I put it in my browser I get what I want.
However if I try to retrieve the post'title to it using jquery 1.7.1 as specified below
$.getJSON('http://api.tumblr.com/v2/blog/blog.tumblr.com/posts/text?api_key=<KEY>&limit=1', function(data) {
console.log("data.posts[0].title");
});
I get an empty response.
Am I missing something?
Thanks for your help.
SIG