user.likes: Retrieve a User's Likes.

Description Usage Arguments Details Value Author(s) References Examples

View source: R/user.likes.R

Description

Use this method to retrieve the liked posts that match the OAuth credentials submitted with the request.

Usage

1
2
user.likes(limit = 20, offset = 0, token = NA, consumer_key = NA, 
consumer_secret = NA)

Arguments

limit

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

offset

Result to start at. 0 is the first follower.

token

Represents the complete set of data needed for OAuth access: an app, an endpoint, cached credentials and parameters. See Details.

consumer_key

The consumer key provided by your application.

consumer_secret

The consumer secret provided by your application.

Details

The API supports the OAuth 1.0a Protocol, accepting parameters via the Authorization header, with the HMAC-SHA1 signature method only.

Value

A serialized JSON object with the following fields:

liked_posts

An array. An array of posts 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
14
15
16
17
18
19
20
21
22
23
24
## Not run: 
## An example of an authenticated request using the httr package,
## where consumer_key, consumer_secret, appname are fictitious.
## You can obtain your own at https://www.tumblr.com/oauth/apps

consumer_key <-'key'
consumer_secret <- 'secret'
appname <- Tumblr_App
tokenURL <- 'https://www.tumblr.com/oauth/request_token'
accessTokenURL <- 'https://www.tumblr.com/oauth/acces_token'
authorizeURL <- 'https://www.tumblr.com/oauth/authorize'

app <- oauth_app(appname, consumer_key, consumer_secret)
endpoint <- oauth_endpoint(tokenURL, authorizeURL, accessTokenURL)
token <- oauth1.0_token(endpoint, app)
sig <- sign_oauth1.0(app, 
token = token$credentials$oauth_token, 
token_secret = token$credentials$oauth_token_secret)
	
	
user.likes(token = token, consumer_key = consumer_key, 
consumer_secret = consumer_secret)

## End(Not run)

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

Related to user.likes in tumblR...