currencyapi_api_key {currencyapi}R Documentation

Currencyapi API Key

Description

currencyapi.com requires authentication via an API key. For this package, the API key is saved as a environmental variable. In interactive mode, using currencyapi_api_key will require you to enter an API key. Alternatively, you can also use Sys.setenv(CURRENCYAPI_API_KEY = <key>) to set the API key manually.

Usage

currencyapi_api_key(force = FALSE)

Arguments

force

If TRUE, resets the API key & requires the user to provide a new API key. If FALSE and an API key already exists, the key will be printed to the console. If no key exists, you will be required to enter a key. force. Defaults to FALSE.

Value

Returns the set API key that has been stored as an enviroment variable.


[Package currencyapi version 0.1.0 Index]