save_api_key {DemografixeR} | R Documentation |
Saves the API key for future functions
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
save_api_key(key)
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
Examples
## Not run:
save_api_key(key="__YOUR_API_KEY__")
## End(Not run)
[Package DemografixeR version 0.1.1 Index]