Skip to contents

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

Arguments

client

A client rtweet_client().

Value

Invisible the path where the client is saved.

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

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()
}