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+
CURL
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 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);
Error Handling
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