Tumblr2.js - JavaScript SDK for Tumblr API v2
var tumblr = new Tumblr2();
tumblr.setApiKey('fme5U6F8DVblNs7HFYtR0ahOs8o1UjxKjqJUuAlBXJSJUu89oN');
tumblr.setBaseHostname('tetsuwo.tumblr.com');
var tumblr = new Tumblr2({
apiKey: 'fme5U6F8DVblNs7HFYtR0ahOs8o1UjxKjqJUuAlBXJSJUu89oN',
baseHostname: 'tetsuwo.tumblr.com'
});
tumblr.api('/blog/info', null, function(response) {
alert('callback [/blog/info]');
console.log(response);
});
tumblr.api('/blog/posts', { limit: 100 }, function(response) {
alert('callback [/blog/posts]');
console.log(response);
});