Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A java library for the Tumblr API
Java CSS
branch: master

Merge pull request #1 from tiefpunkt/master

Added the possibility to set the date of a post
latest commit 11174cf318
@nsheridan authored
Failed to load latest commit information.
.settings
doc
libs
src/net/asplode/tumblr
.classpath
.gitignore Sort methods. Add setGenerator().
.project
LICENSE Add license
README.markdown

README.markdown

tumblr-java is a java library for the Tumblr API.

Notes:

  • xAuth is the only supported authentication.
  • The library uses a mix of the v1 and v2 Tumblr APIs. The v1 API is used for creating new posts. Everything else uses the v2 API. This is mainly because file uploads using the v2 API are problematic.
  • Creating a post returns the HTTP status of the request. Everything else returns a JSONObject.
  • Tumblr API docs: v1 API, v2 API.
  • Java Doc for tumblr-java

Dependencies:

Example use:

TextPost post = new TextPost();
post.setCredentials("email@provider.com", "password");
post.setTitle("Hello World!");
post.setBody("Fnord");
int result = post.postToTumblr();

Tumblr tumblr = new Tumblr("oauth_consumer_key", "oauth_secret_key");
// Set user credentials for xauth
tumblr.setCredentials("email@provider.com", "password");
JSONObject json = tumblr.getDashboard();

tumblr-java is licensed under the Apache 2.0 license

Something went wrong with that request. Please try again.