jaapz/tumblr

PHP 5.3 的 Tumblr API 包装器

dev-master 2013-02-27 08:38 UTC

This package is not auto-updated.

Last update: 2024-09-14 16:18:48 UTC


README

一个简单的 Tumblr API 包装器,用于 PHP。此工具使用 Tumblr API v2。

用法

只需实例化一个新的 API 对象,设置 oauth 令牌和/或 API 密钥,然后在该 API 对象上调用方法。

例如,你可以这样获取某个博客的信息

// 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);

可用方法

许可证

"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.