lp_api_key {leanpubr} | R Documentation |
Find API Key for Leanpub
Description
Determines if Leanpub API Key is set. If not, it stops and returns an error. If so, returns the value.
Usage
lp_api_key(api_key = NULL, error = TRUE)
lp_have_api_key(api_key = NULL)
Arguments
api_key |
Leanpub API key ( |
error |
Should the function error if |
Value
Character API key
Note
You can either set the API key or have it accessible by
api_key = Sys.getenv('LEANPUB_API_KEY')
.
Examples
res = lp_api_key(error = FALSE)
lp_have_api_key()
[Package leanpubr version 0.3.1 Index]