Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.12 KB

README.md

File metadata and controls

34 lines (24 loc) · 1.12 KB

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.

Requirements

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

Getting Started

Follow the instructions in index.php for a detailed example of the OAuth authentication.


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

About

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