Return the API key associated with a web service provider.

getAPIKey(provider = NULL)

Arguments

provider

Web service provider.

Value

API key string, NULL, or a named list of all provider/key pairs.

Details

If provider = NULL, all currently stored API keys are returned.

Examples

setAPIKey("exampleProvider", "abcd1234efgh5678")

getAPIKey("exampleProvider")
#> [1] "abcd1234efgh5678"
getAPIKey()
#> $exampleProvider
#> [1] "abcd1234efgh5678"
#> 

# Remove the example key
setAPIKey("exampleProvider", NULL)