Learn R Programming

MazamaCoreUtils (version 0.6.3)

showAPIKeys: Show API keys

Description

Print all currently set API keys.

Usage

showAPIKeys(mask = TRUE)

Value

No return value. Called for side effects.

Arguments

mask

Logical specifying whether to mask key values.

Details

By default, key values are masked so that they are not exposed in console output or logs: only the first four characters of keys longer than eight characters are shown. Use mask = FALSE to print complete keys, or getAPIKey() to retrieve them programmatically.

See Also

getAPIKey(), setAPIKey()

Examples

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

# Keys are masked by default
showAPIKeys()
showAPIKeys(mask = FALSE)

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

Run the code above in your browser using DataLab