Specify the key for accessing the timetravelData API. Automatically determines which type of key is being used and authenticates appropriately.

set_api_key(api_key)

Arguments

api_key

API key.

Examples

# Authenticate using an API key.
set_api_key("412dd2813fbf9037f5266557bbf5d1f5")
#> WARNING, an API key was found in .Renviron: TIMETRAVELDATA_KEY, it was replaced with key supplied.