request | R Documentation |
Perform an arbitrary GET, POST or DELETE function using a connection object.
request(
conn,
rtype = c("GET", "POST", "DELETE"),
uri_keys = NULL,
uri_args = NULL,
headers = NULL,
body = NULL,
jsondata = NULL
)
conn |
A connection object generated by |
rtype |
A string indicating the kind of HTTP request to be performed - accepts GET, POST and DELETE |
uri_keys |
A two-element string vector indicating which URI to use - see common.R |
uri_args |
A list of arguments to be passed to the URI |
headers |
A list of headers to be used by the GET/POST/DELETE request, per the |
body |
A string, indicating the body to be passed to the request. Do not pass this and jsondata simultaneously. |
jsondata |
A string, indicating the JSON body to be passed. See above. |
For advanced users only, this function allows you to perform an arbitrary GET, POST or DELETE request on the low-level API. Allows for full configurability of the request, including setting the keys, arguments, headers, and JSON payload.
Returns the raw GET/POST/DELETE output from the request.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.