Learn R Programming

MazamaCoreUtils (version 0.6.3)

getAPIKey: Get API key

Description

Return the API key associated with a web service provider.

Usage

getAPIKey(provider = NULL)

Value

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

Arguments

provider

Web service provider.

Details

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

See Also

APIKeys, setAPIKey(), showAPIKeys()

Examples

Run this code
setAPIKey("exampleProvider", "abcd1234efgh5678")

getAPIKey("exampleProvider")
getAPIKey()

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

Run the code above in your browser using DataLab