A OAuth Wrapper Library for Tumblr API V2
Switch branches/tags
Nothing to show
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
basic_examples Fix by Tom Reed for Tag Search Jul 16, 2013
lib fixing spelling of getAccessToken May 22, 2014
oauth_examples updating line numbers per issue #5 Dec 10, 2014
README.md Adding OAuth and Basic Examples Jul 16, 2013


tumblrPHP - A PHP Library for the Tumblr API (V2)

This a library written to interact with the Tumblr API (http://www.tumblr.com/docs/en/api/v2) using both oAuth Authenticated Calls and Non-Authenticated calls.


The OAuth Script has been tested and is now working again.


PHP 5+
oAuth for PHP (included in this repo)

Getting Started

Follow the instructions in oauth_examples/.. for a detailed example of the OAuth authentication. If you want basic authentication examples, please see the basic_examples/.. folder.

After obtaining the Authentication tokens, if you want to make authenticated calls you just need to use the following method:

$tumblr = new Tumblr(consumer, secret, user_token, user_secret);
$res = $tumblr->oauth_get(METHOD_HERE, PARAMS_HERE);

If you are using non-authenticated calls - all you need to do is use the get method:

$tumblr = new Tumblr(consumer, secret);
$res = $tumblr->get(METHOD_HERE, PARAMS_HERE);

To Do

Error Handling

Getting Help

If you need help or have questions, please contact Greg Avola on Twitter at http://twitter.com/gregavola


This library was inspired by Abraham's version of Twitter OAuth - https://github.com/abraham/twitteroauth