crunchAPI: Main Crunch API handling function

View source: R/api.R

crunchAPIR Documentation

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


Crunch-io/rcrunch documentation built on April 1, 2024, 1:14 a.m.