Skip to contents

[Deprecated]

set_api_key() is deprecated. Set the SPDGT_API_KEY environment variable in your .Renviron file instead.

Usage

set_api_key(api_key, realm = "counts", username = "default")

Arguments

api_key

Character string containing the API key.

realm

Character. The realm to store the key for (default "counts").

username

Ignored.

Value

Invisibly returns NULL.

See also

auth_login() for automatic auth selection

Examples

if (FALSE) { # \dontrun{
# Instead of set_api_key(), add to your .Renviron:
# SPDGT_API_KEY=your-api-key-here
} # }