rtweet (version 0.6.0)

lists_subscribers: Get subscribers of a specified list.

Description

Get subscribers of a specified list.

Usage

lists_subscribers(list_id = NULL, slug = NULL, owner_user = NULL,
  n = 20, cursor = "-1", parse = TRUE, token = NULL)

Arguments

list_id

required The numerical id of the list.

slug

required You can identify a list by its slug instead of its numerical id. If you decide to do so, note that you'll also have to specify the list owner using the owner_id or owner_user parameters.

owner_user

optional The screen name or user ID of the user who owns the list being requested by a slug.

n

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

cursor

semi-optional 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

OAuth token. By default token = NULL fetches a non-exhausted token from an environment variable. Find instructions on how to create tokens and setup an environment variable in the tokens vignette (in r, send ?tokens to console).

See Also

Other lists: lists_members, lists_statuses, lists_users

Other users: as_screenname, lookup_users, search_users, tweets_with_users, users_data

Examples

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

# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace