Perform a get request to a url using a javascript web token for authentication
ices_get(
url,
retry = TRUE,
quiet = FALSE,
verbose = FALSE,
content = TRUE,
use_token = FALSE
)ices_get_jwt(
url,
username = NULL,
retry = TRUE,
quiet = FALSE,
verbose = FALSE,
jwt = NULL
)
ices_patch_jwt(
url,
body = list(),
encode = "json",
username = NULL,
retry = TRUE,
quiet = FALSE,
verbose = FALSE,
jwt = NULL
)
ices_post(
url,
body = list(),
retry = TRUE,
verbose = FALSE,
content = TRUE,
use_token = TRUE,
encode = "multipart"
)
ices_post_jwt(
url,
body = list(),
encode = "json",
username = NULL,
retry = TRUE,
quiet = FALSE,
verbose = FALSE,
jwt = NULL
)
ices_request_jwt(
type = c("GET", "POST", "PATCH"),
url,
body = NULL,
encode = c("multipart", "form", "json", "raw"),
username = NULL,
retry = TRUE,
quiet = FALSE,
verbose = FALSE,
jwt = NULL
)
http response object
the url to make the request to
if initial request fails, should a retry be made, Default: TRUE
suppress informative messages to the console
should the http request return verbose output
logical, if TRUE the content of the response is returned, if FALSE the http response object is returned
logical, if TRUE the token is used, if FALSE the token is not used
the ices username to perform the request as,
Default: getOption("ices.username")
option to supply a token bypassing the ices_token() route, if "" no token is used
optional body of request
If the body is a named list, how should it be encoded?
the type of request to make, GET, POST or PATCH
ices_token
GET,add_headers,stop_for_status,status_code