lists_subscriptions: Get list subscriptions of a given user.

Description Usage Arguments See Also Examples

View source: R/lists_subscriptions.R

Description

Get list subscriptions of a given user.

Usage

1
lists_subscriptions(user, n = 20, cursor = "-1", parse = TRUE, token = NULL)

Arguments

user

Either the user ID or screen name of user.

n

Specifies the number of results to return per page (see cursor below). The default is 20, with a maximum of 1000.

cursor

Causes the collection of list members to be broken into "pages" of consistent sizes (specified by the count parameter). If no cursor is provided, a value of -1 will be assumed, which is the first "page." The response from the API will include a previous_cursor and next_cursor to allow paging back and forth. See Using cursors to navigate collections for more information.

parse

Logical indicating whether to convert the response object into an R list. Defaults to TRUE.

token

Every user should have their own Oauth (Twitter API) token. By default token = NULL this function looks for the path to a saved Twitter token via environment variables (which is what 'create_token()' sets up by default during initial token creation). For instruction on how to create a Twitter token see the tokens vignette, i.e., 'vignettes("auth", "rtweet")' or see ?tokens.

See Also

Other lists: lists_members(), lists_statuses(), lists_subscribers(), lists_users()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

## get subscriptions of new york times politics list
rstats <- lists_subscriptions(
  slug = "new-york-times-politics",
  n = 1000
)


## End(Not run)

rtweet documentation built on Jan. 11, 2020, 9:11 a.m.