Skip to content

irace/tumblr.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tumblr.js

JavaScript client library for the Tumblr API.

Create a Client

var tumblr = require('tumblr');
var client = tumblr.createClient({
  consumer_key: '<consumer key>',
  consumer_secret: '<consumer secret>',
  token: '<oauth token>',
  token_secret: '<oauth token secret>'
});

Or, if you prefer:

var tumblr = require('tumblr');
var client = new tumblr.Client({
	// ...
});

Supported Methods

User Methods

client.userInfo(callback);

client.dashboard(options, callback);
client.dashboard(callback);

client.likes(options, callback);
client.likes(callback);

client.following(options, callback);
client.following(callback);

client.follow(blogURL, callback);
client.unfollow(blogURL, callback);

client.like(id, reblogKey, callback);
client.unlike(id, reblogKey, callback);

Blog Methods

client.blogInfo(blogName, callback);

client.posts(blogName, options, callback);
client.posts(blogName, callback);

client.avatar(blocName, size, callback);
client.avatar(blocName, callback);

client.blogLikes(blogName, options, callback);
client.blogLikes(blogName, callback);

client.followers(blogName, options, callback);
client.followers(blogName, callback);

client.queue(blogName, options, callback);
client.queue(blogName, callback);

client.drafts(blogName, options, callback);
client.drafts(blogName, callback);

client.submissions(blogName, options, callback);
client.submissions(blogName, callback);

Post Methods

client.edit(blogName, options, callback);

client.reblog(blogName, options, callback);

client.deletePost(blogName, id, callback);

client.photo(blogName, options, callback);
client.quote(blogName, options, callback);
client.text(blogName, options, callback);
client.link(blogName, options, callback);
client.chat(blogName, options, callback);
client.audio(blogName, options, callback);
client.video(blogName, options, callback);

Tagged Methods

client.tagged(tag, options, callback);
client.tagged(tag, callback);

Running tests

make # run tests
make coverage # run coverage report

Copyright and license

Copyright 2013 Tumblr, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations.

About

JavaScript client for the Tumblr API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%