Documentation ¶
Index ¶
- type Client
- func (c *Client) Delete(endpoint string) (tumblr.Response, error)
- func (c *Client) DeleteWithParams(endpoint string, params url.Values) (tumblr.Response, error)
- func (c *Client) Get(endpoint string) (tumblr.Response, error)
- func (c *Client) GetBlog(name string) *tumblr.BlogRef
- func (c *Client) GetDashboard() (*tumblr.Dashboard, error)
- func (c *Client) GetDashboardWithParams(params url.Values) (*tumblr.Dashboard, error)
- func (c *Client) GetHttpClient() *http.Client
- func (c *Client) GetLikes() (*tumblr.Likes, error)
- func (c *Client) GetLikesWithParams(params url.Values) (*tumblr.Likes, error)
- func (c *Client) GetPost(id uint64, blogName string) *tumblr.PostRef
- func (c *Client) GetUser() (*tumblr.User, error)
- func (c *Client) GetWithParams(endpoint string, params url.Values) (tumblr.Response, error)
- func (c *Client) Post(endpoint string) (tumblr.Response, error)
- func (c *Client) PostWithParams(endpoint string, params url.Values) (tumblr.Response, error)
- func (c *Client) Put(endpoint string) (tumblr.Response, error)
- func (c *Client) PutWithParams(endpoint string, params url.Values) (tumblr.Response, error)
- func (c *Client) SetConsumer(consumerKey string, consumerSecret string)
- func (c *Client) SetToken(token string, tokenSecret string)
- func (c *Client) TaggedSearch(tag string) (*tumblr.SearchResults, error)
- func (c *Client) TaggedSearchWithParams(tag string, params url.Values) (*tumblr.SearchResults, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { tumblr.ClientInterface // contains filtered or unexported fields }
The Tumblr API Client object
func NewClientWithToken ¶
func NewClientWithToken(consumerKey string, consumerSecret string, token string, tokenSecret string) *Client
Constructor with consumer key/secret and user token/secret
func (*Client) DeleteWithParams ¶
Issue DELETE request to Tumblr API with param values
func (*Client) GetDashboard ¶
Makes a request for the user's dashboard
func (*Client) GetDashboardWithParams ¶
Makes a request for the user's dashboard with params
func (*Client) GetHttpClient ¶
Retrieve the underlying HTTP client
func (*Client) GetLikesWithParams ¶
Retrieves the posts the current user has liked
func (*Client) GetUser ¶
Makes a request for user info based on the client's user token/secret values
func (*Client) GetWithParams ¶
Issue GET request to Tumblr API with param values
func (*Client) PostWithParams ¶
Issue POST request to Tumblr API with param values
func (*Client) PutWithParams ¶
Issue PUT request to Tumblr API with param values
func (*Client) SetConsumer ¶
Set consumer credentials, invalidates any previously cached client
func (*Client) TaggedSearch ¶
Performs a tagged serach with this client, returning the result