Learn R Programming

crunch (version 1.3.2)

crunchAPI: Main Crunch API handling function

Description

Main Crunch API handling function

Usage

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

Arguments

http.verb
character in GET, PUT, POST
url
character URL to do the verb on
response.handler
function that takes a http response object and does something with it
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 response.handler function.
...
additional arguments passed to GET, PUT, or POST