Learn R Programming

crunch (version 1.30.4)

crunchAPI: Main Crunch API handling function

Description

Main Crunch API handling function

Usage

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

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.

progress.handler

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