Description Usage Arguments Value Note Examples
Determines if Leanpub API Key is set. If not, it stops and returns an error. If so, returns the value.
1 2 3 | lp_api_key(api_key = NULL, error = TRUE)
lp_have_api_key(api_key = NULL)
|
api_key |
Leanpub API key ( |
error |
Should the function error if |
Character API key
You can either set the API key or have it accessible by
api_key = Sys.getenv('LEANPUB_API_KEY')
.
1 2 | res = lp_api_key(error = FALSE)
lp_have_api_key()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.