2017 © Pedro Peláez
 

library tumblr

Official Tumblr PHP Client

image

tumblr/tumblr

Official Tumblr PHP Client

  • Wednesday, July 18, 2018
  • by seejohnrun
  • Repository
  • 78 Watchers
  • 355 Stars
  • 203,312 Installations
  • PHP
  • 13 Dependents
  • 0 Suggesters
  • 105 Forks
  • 23 Open issues
  • 11 Versions
  • 3 % Grown

The README.md

tumblr.php

CI, (*1)

The official PHP client for the Tumblr API., (*2)

Usage

Basic Usage

The first step is setting up a Client:, (*3)

``` php $client = new Tumblr\API\Client($consumerKey, $consumerSecret); $client->setToken($token, $tokenSecret);, (*4)


And then you can do anything you'd like: ``` php foreach ($client->getUserInfo()->user->blogs as $blog) { echo $blog->name . "\n"; }

User Methods

``` php $client->getUserInfo();, (*5)

$client->getDashboardPosts($options = null); $client->getLikedPosts($options = null); $client->getFollowedBlogs($options = null);, (*6)

$client->follow($blogName); $client->unfollow($blogName);, (*7)

$client->like($postId, $reblogKey); $client->unlike($postId, $reblogKey);, (*8)


### Blog Methods ``` php $client->getBlogInfo($blogName); $client->getBlogAvatar($blogName, $size = null); $client->getBlogPosts($blogName, $options = null); $client->getBlogLikes($blogName, $options = null); $client->getBlogFollowers($blogName, $options = null); $client->getQueuedPosts($blogName, $options = null); $client->getDraftPosts($blogName, $options = null); $client->getSubmissionPosts($blogName, $options = null);

Post Methods

``` php $client->createPost($blogName, $data); $client->editPost($blogName, $id, $data); $client->deletePost($blogName, $id, $reblogKey); $client->reblogPost($blogName, $id, $reblogKey, $options = null);, (*9)


### Tagged Methods ``` php $client->getTaggedPosts($tag, $options = null);

Examples

Examples and "Getting Started" guide are available in the examples folder., (*10)

Dependencies

tumblr.php is available on Packagist, (*11)

  • guzzle/guzzle 6.x or 7.x
  • eher/oauth 1.0.x

If you're using Composer (you should!) you can just run composer require tumblr/tumblr and you'll be good to go. More details on getcomposer.org., (*12)

Running tests

tumblr.php has full unit tests that can be run with PHPUnit like this:, (*13)

``` bash php vendor/bin/phpunit, (*14)


This will also generate a coverage report into `./build/coverage`: ```bash XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-html=build/coverage

Copyright 2013 Tumblr, Inc., (*15)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:, (*16)

http://www.apache.org/licenses/LICENSE-2.0, (*17)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations., (*18)

The Versions

18/07 2018

dev-janicelee/integrate-library

dev-janicelee/integrate-library https://github.com/tumblr/tumblr.php

Official Tumblr PHP Client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api gif sdk tumblr

29/09 2017

dev-master

9999999-dev https://github.com/tumblr/tumblr.php

Official Tumblr PHP Client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api gif sdk tumblr

29/09 2017

v0.4.0

0.4.0.0 https://github.com/tumblr/tumblr.php

Official Tumblr PHP Client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api gif sdk tumblr

07/03 2017

v0.3.0

0.3.0.0 https://github.com/tumblr/tumblr.php

Official Tumblr PHP Client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api gif sdk tumblr

07/03 2017

dev-guzzle-v6

dev-guzzle-v6 https://github.com/tumblr/tumblr.php

Official Tumblr PHP Client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api gif sdk tumblr

18/04 2016

dev-request-method-accessibility

dev-request-method-accessibility https://github.com/tumblr/tumblr.php

Official Tumblr PHP Client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api gif sdk tumblr

16/12 2014

v0.2.0

0.2.0.0 https://github.com/tumblr/tumblr.php

Official Tumblr PHP Client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api gif sdk tumblr

15/07 2013

v0.1.1

0.1.1.0 https://github.com/tumblr/tumblr.php

Official Tumblr PHP Client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api gif sdk tumblr

21/03 2013

v0.1.0

0.1.0.0 https://github.com/tumblr/tumblr.php

Official Tumblr PHP Client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api gif sdk tumblr

18/03 2013

v0.0.3

0.0.3.0 https://github.com/tumblr/tumblr.php

Official Tumblr PHP Client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api gif sdk tumblr

12/03 2013

0.0.2

0.0.2.0 https://github.com/tumblr/tumblr.php

Official Tumblr PHP Client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api gif sdk tumblr