auth_setup_default: Set up default authentication

View source: R/auth.R

auth_setup_defaultR Documentation

Set up default authentication

Description

You'll need to run this function once per computer so that rtweet can use your personal Twitter account. See rtweet_app()/rtweet_bot and auth_save() for other authentication options.

Usage

auth_setup_default()

auth_has_default()

Details

It will use the current logged in account on the default browser to detect the credentials needed for rtweet and save them as "default". If a default is found it will use it instead.

Value

auth_setup_default(): Invisibly returns the previous authentication mechanism. auth_has_default(): A logical value TRUE if there is a default authentication.

See Also

Other authentication: auth_as(), auth_get(), auth_save(), rtweet_user()

Examples

## Not run: 
if (!auth_has_default() && interactive()) {
   auth_setup_default()
}

## End(Not run)

rtweet documentation built on July 21, 2022, 5:10 p.m.