Learn R Programming

rtweet (version 1.2.1)

client_save: Save an authentication mechanism for use in a future session

Description

Use client_save() with client_as() to avoid repeatedly entering app credentials, making it easier to share auth between projects. Use client_list() to list all saved credentials.

Usage

client_save(client)

client_list()

Value

Invisible the path where the client is saved.

Arguments

client

A client rtweet_client().

Details

The tokens are saved on the clients folder in tools::R_user_dir("rtweet", "config").

See Also

auth_sitrep() to help finding and managing authentications.

Other client: client_as(), client_get(), client_has_default()

Examples

Run this code
if (FALSE) {
# save app client for use in other sessions
client <- rtweet_client()
client_save(client)

# later, in a different session...
client_as("my-app")
# Show all authentications stored
client_list()
}

Run the code above in your browser using DataLab