aws.executeapi: Title

View source: R/utilsForPDAP.R

aws.executeapiR Documentation

Title

Description

Generic function to interact with the PDAP Jobs API. Based on origina from Patrick Linton https://gist.github.com/pashri/c889ebb79c18ca77312490217b534da4

Usage

aws.executeapi(url, verb, query = NULL, body = "", headers = NULL)

Arguments

url

URL of the PDAP Jobs API

verb

HTTP verb to use

query

Any query parameters which should be added to the request

body

The body of the request. Be sure to convert to the proper format as needed. If converting to JSON, use toJSON() from the jsonlite package. If uploading a file, use the raw binary data.

headers

Any additional headers which should be supplied, such as "application/csv".

Value

Returns the raw response from the API


pepfar-datim/datapackr documentation built on Sept. 9, 2024, 4:33 p.m.