client_save function

Save an authentication mechanism for use in a future session

Save an authentication mechanism for use in a future session

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.

client_save(client) client_list()

Arguments

  • client: A client rtweet_client().

Returns

Invisible the path where the client is saved.

Details

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

Examples

## Not run: # 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() ## End(Not run)

See Also

auth_sitrep() to help finding and managing authentications.

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

  • Maintainer: Lluís Revilla Sancho
  • License: MIT + file LICENSE
  • Last published: 2024-02-24