likes: Retrieve Blog's Likes

Description Usage Arguments Details Value Author(s) References Examples

View source: R/likes.R

Description

Retrieve the publicly exposed likes from a blog.

Usage

1
likes(base_hostname = NA, limit = 20, offset = 0, api_key = NA)

Arguments

base_hostname

The standard or custom blog hostname. See Details.

limit

The number of results to return: 1-20, inclusive.

offset

Liked post number to start at. 0 is the first post.

api_key

Your OAuth Consumer Key. See Details.

Details

Each blog has a unique hostname. The hostname can be standard or custom. Standard hostname: the blog short name + .tumblr.com. Custom hostname: Anything at all, as determined by a DNS CNAME entry. The API uses three different levels of authentication, depending on the method. None: No authentication. Anybody can query the method. API key: Requires an API key. Use your OAuth Consumer Key as your api_key. OAuth: Requires a signed request that meets the OAuth 1.0a Protocol.

Value

A list object with the following fields:

liked_posts

An Array. An array of post objects (posts liked by the user).

liked_count

A number. Total number of liked posts.

Author(s)

Andrea Capozio

References

https://www.tumblr.com/docs/en/api/v2

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 	
## An example of an authenticated request,
## where api_key is fictitious.
## You can obtain your own at https://www.tumblr.com/oauth/apps
api_key <- "key"

## you must specify a real blog for base_hostname
base_hostname <- "blogname.tumblr.com"


likes(base_hostname = base_hostname, limit = 20, offset = 0, api_key = api_key)

## End(Not run)

tumblR documentation built on March 18, 2020, 5:09 p.m.

Related to likes in tumblR...