Description Usage Arguments Value Note Examples
View source: R/lp_get_wrapper.R
Leanpub Wrapper for GET/POST statements
1 2 3 4 5 | lp_get_wrapper(slug, endpoint, api_key = NULL, secure = TRUE,
verbose = TRUE, ...)
lp_post_wrapper(slug, endpoint, api_key = NULL, secure = TRUE,
verbose = TRUE, ...)
|
slug |
slug of the project |
endpoint |
call to the api endpoint |
api_key |
API key for Leanpub, passed to |
secure |
passed to |
verbose |
print diagnostic messages |
... |
additional options to pass to |
List of the result of the GET
call and
the content
See https://leanpub.com/help/api
1 2 3 4 | if (lp_have_api_key()) {
stat = lp_get_wrapper(slug = "neuroimagingforstatisticians",
endpoint = "/job_status", nonstop = TRUE, error = FALSE)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.