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.
oAuth for PHP (included in this repo)
Follow the instructions in
oauth_examples/.. for a detailed example of the OAuth authentication. If you want basic authentication examples, please see the
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
$tumblr = new Tumblr(consumer, secret); $res = $tumblr->get(METHOD_HERE, PARAMS_HERE);
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