aws.executeapi | R Documentation |
Generic function to interact with the PDAP Jobs API. Based on origina from Patrick Linton https://gist.github.com/pashri/c889ebb79c18ca77312490217b534da4
aws.executeapi(url, verb, query = NULL, body = "", headers = NULL)
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". |
Returns the raw response from the API
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.