lp_get_wrapper: Leanpub Wrapper for GET/POST statements

View source: R/lp_get_wrapper.R

lp_get_wrapperR Documentation

Leanpub Wrapper for GET/POST statements

Description

Leanpub Wrapper for GET/POST statements

Usage

lp_get_wrapper(
  slug,
  endpoint,
  api_key = NULL,
  secure = TRUE,
  verbose = TRUE,
  ...
)

lp_post_wrapper(
  slug,
  endpoint,
  api_key = NULL,
  secure = TRUE,
  verbose = TRUE,
  ...
)

Arguments

slug

slug of the project

endpoint

call to the api endpoint

api_key

API key for Leanpub, passed to lp_api_key

secure

passed to lp_base_url for https

verbose

print diagnostic messages

...

additional options to pass to GET

Value

List of the result of the GET call and the content

Note

See https://leanpub.com/help/api

Examples

if (lp_have_api_key()) {
stat = lp_get_wrapper(slug = "neuroimagingforstatisticians",
    endpoint = "/job_status", nonstop = TRUE, error = FALSE)
}

muschellij2/leanpubr documentation built on June 13, 2025, 8:58 p.m.