rtweet (version 0.6.0)

suggested_slugs: Get user [account] suggestions for authenticating user

Description

Returns Twitter's list of suggested user categories.

Returns users from a specific, suggested category

Usage

suggested_slugs(lang = NULL, token = NULL)

suggested_users(slug, lang = NULL, token = NULL)

Arguments

lang

optional Restricts the suggested categories to the requested language. The language must be specified by the appropriate two letter ISO 639-1 representation.

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).

slug

required The short name of list or a category

Value

List of recommended categories which can be passed along as the "slug" parameter in suggested_users

Recommended users

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
## get slugs
slugs <- suggested_slugs()

## use slugs to get suggested users
suggested_users(slugs$slug[1])

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab