node-tumblr

A Node.JS wrapper for the Tumblr API v2

This project is maintained by meritt

Tumblr

A Node.JS wrapper for the Tumblr API v2.

The announcement in Russian of this module in my blog.

How to use with JavaScript

var Tumblr = require('tumblr').Tumblr;

var blog = new Tumblr('blog.tumblr.com', 'OAuth Consumer Key');

blog.text({limit: 2}, function(error, response) {
    if (error) {
        throw new Error(error);
    }

    console.log(response.posts);
});

Or with CoffeeScript

{Tumblr} = require 'tumblr'

blog = new Tumblr 'blog.tumblr.com', 'OAuth Consumer Key'

blog.text limit: 2, (error, response) ->
    throw new Error error if error
    console.log response.posts

Install with NPM

npm install tumblr

API

Options list

Author