\TumblrApi
Implementation for the Tumblr api.
- Author: Christian Blank <c.blank@notthatbad.net>
Synopsis
class TumblrApi
implements
IApiProvider
{
- // members
- private $key = NULL;
- private static string $api_base = 'http://api.tumblr.com/v2/blog/';
- private static string $api_blog_info = '/info?api_key=';
- private static string $api_blog_avatar = '/avatar/512';
- private static string $domain = 'tumblr.com';
- // methods
- public void __construct()
- public void isProvided()
- public void search()
Hierarchy
Implements
Members
private
- $api_base
—
string
The base path for the api. - $api_blog_avatar
—
string
The path for the blog avatar request. - $api_blog_info
—
string
The path for the blog info request. - $domain
—
string
The domain to check against the requested url. - $key
—
string
The public api key.