rtweet (version 0.6.7)

lists_subscriptions: Get list subscriptions of a given user.

Description

Get list subscriptions of a given user.

Usage

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

Run this code
# NOT RUN {
# }
# NOT RUN {
## get subscriptions of new york times politics list
rstats <- lists_subscriptions(
  slug = "new-york-times-politics",
  n = 1000
)

# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace