Main Crunch API handling function
crunchAPI(
http.verb,
url,
config = list(),
status.handlers = list(),
progress.handler = NULL,
...
)
character in GET, PUT, POST, PATCH, DELETE
character URL to do the verb on
list of config parameters. See httr documentation.
named list of specific HTTP statuses and a response
function to call in the case where that status is returned. Passed to the
handleAPIresponse()
function.
an optional function that resolves errors raised
during an async request. Passed to the pollProgress()
function.
additional arguments passed to GET
, PUT
,
POST
, PATCH
, or DELETE