Learn R Programming

crunch (version 1.14.4)

crunchAPI: Main Crunch API handling function

Description

Main Crunch API handling function

Usage

crunchAPI(http.verb, url, config = list(), status.handlers = list(), ...)

Arguments

http.verb
character in GET, PUT, POST, PATCH, DELETE
url
character URL to do the verb on
config
list of config parameters. See httr documentation.
status.handlers
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.
...
additional arguments passed to GET, PUT, POST, PATCH, or DELETE