save_api_key: Saves the API key for future functions

Description Usage Arguments Value Warning Author(s) See Also Examples

View source: R/api_structure.R

Description

Saves the all in one genderize.io, agify.io & nationalize.io API key in the users environment. It has the advantage that it is not necessary to explicitly publish the key in the users code. Just do it one time and you're set. To update the key just save again and it will overwrite the old key. To explicitly print the key, use the get_api_key function. To remove the key use the remove_api_key function.

Usage

1

Arguments

key

API key obtained from the specific website. Visit the one of the following websites to obtain an API key:

Value

Does save the key in the environment.

Warning

Please be careful when dealing with API keys and other secrets & tokens - keep them private and do not publish them.

Author(s)

Matthias Brenninkmeijer - https://github.com/matbmeijer

See Also

get_api_key, remove_api_key

Examples

1
2
3
4
## Not run: 
save_api_key(key="__YOUR_API_KEY__")

## End(Not run)

DemografixeR documentation built on July 8, 2020, 5:18 p.m.