tumblr
A node.js wrapper for the Tumblr API v2.
Installation
$ npm install tumblr
Examples
var tumblr = ; var oauth = consumer_key: 'OAuth Consumer Key' consumer_secret: 'OAuth Consumer Secret' token: 'OAuth Access Token' token_secret: 'OAuth Access Token Secret'; var blog = 'blog.tumblr.com' oauth; blogtextlimit: 2 { if error throw error; console;}; var user = oauth; user;
Or with CoffeeScript
require 'tumblr' oauth = consumer_key: 'OAuth Consumer Key' consumer_secret: 'OAuth Consumer Secret' token: 'OAuth Access Token' token_secret: 'OAuth Access Token Secret' blog = 'blog.tumblr.com'oauth blogtext limit: 2 throw error if error consolelog responseposts user = oauth userinfo throw error if error consolelog responseuser
API
Blog
info(callback)
avatar([size, ]callback)
followers([options, ]callback)
likes([options, ]callback)
posts([options, ]callback)
text([options, ]callback)
quote([options, ]callback)
link([options, ]callback)
answer([options, ]callback)
video([options, ]callback)
audio([options, ]callback)
photo([options, ]callback)
Options list please refer to Tumblr API v2 - Blog Methods
User
info(callback)
dashboard([options, ]callback)
likes([options, ]callback)
following([options, ]callback)
Options list please refer to Tumblr API v2 - User Methods
Tagged
search(tag[, options], callback)
Options list please refer to Tumblr API v2 - Tagged Methods
Contributing
DO NOT directly modify the lib
files. These files are automatically built from CoffeeScript sources located under the src
directory.
To do build run:
npm run build
Credits
Big thanks to all contributors.
License
The MIT License, see the included license.md
file.