seejohnrun:tumblr.js JavaScript clientToday I’m excited to announce the release of tumblr.js, the fi
seejohnrun:tumblr.js JavaScript clientToday I’m excited to announce the release of tumblr.js, the first of several official API clients we’ll be rolling out over the next few months.You can install it now with npm, and start making something awesome:var tumblr = require('tumblr.js');var client = tumblr.createClient({ consumer_key: 'consumer_key', consumer_secret: 'consumer_secret', token: 'oauth_token', token_secret: 'oauth_token_secret'});// Name all of the authenticating user's blogsclient.userInfo(function (err, data) { data.user.blogs.forEach(function (blog) { console.log(blog.name); });});It comes with full support for all of the API V2 endpoints including tag search, following, liking, and post creation. For more detail, see the GitHub page.More to come soon! -- source link