2017 © Pedro Peláez
 

library tumblr

Tumblr API wrapper for PHP 5.3

image

jaapz/tumblr

Tumblr API wrapper for PHP 5.3

  • Wednesday, February 27, 2013
  • by jaapz
  • Repository
  • 2 Watchers
  • 19 Stars
  • 3,765 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 1 Versions
  • 15 % Grown

The README.md

Tumblr

A simple to use Tumblr API wrapper for PHP. This uses the Tumblr API v2., (*1)

Usage

Just instantiate a new API instance, set oauth token and/or api key, and then call the method on the API instance., (*2)

For example you'll get the information on a certain blog like this:, (*3)

// Instantiate a new Tumblr API instance.
$api = new Tumblr();

// Set API key.
$api->setApiKey(*** YOUR API KEY ***);

// Get blog information.
$info = $api->blogInfo('jaapz.tumblr.com');
var_dump($info);

Available methods

Name Url Auth method Method
blogInfo /blog/%s/info API Key get
followers /blog/%s/followers OAuth get
posts /blog/%s/posts API Key get
queue /blog/%s/posts/queue OAuth get
drafts /blog/%s/posts/draft OAuth get
submissions /blog/%s/posts/submissions OAuth get
createPost /blog/%s/post OAuth post
editPost /blog/%s/post/edit OAuth post
reblogPost /blog/%s/post/reblog OAuth post
deletePost /blog/%s/post/delete OAuth post
dashboard /user/dashboard OAuth get
likes /user/likes OAuth get
following /user/following OAuth get
follow /user/follow OAuth post
unfollow /user/unfollow OAuth get
userInfo /user/info OAuth get

License

"THE BEER-WARE LICENSE" (Revision 42):
Jaap Broekhuizen <jaapz.b@gmail.com> wrote this file. As long as you retain this 
notice you can do whatever you want with this stuff. If we meet some day, and 
you think this stuff is worth it, you can buy me a beer in return.

The Versions

27/02 2013

dev-master

9999999-dev https://github.com/jaapz/Tumblr

Tumblr API wrapper for PHP 5.3

  Sources   Download

BEER-WARE LICENSE

The Requires

  • php >=5.3.0
  • ext-curl *

 

api tumblr