View source: R/requestHandling.R
doHttrRequest | R Documentation |
This changes the auth type depending on if its local
doHttrRequest(
url,
request_type = "GET",
the_body = NULL,
encode = "json",
config = NULL,
simplifyVector = getOption("EventStudy.jsonlite.simplifyVector")
)
url |
the url of the page to retrieve |
request_type |
the type of httr request function: GET, POST, PUT, DELETE etc. |
the_body |
body of POST request |
simplifyVector |
Passed to jsonlite::fromJSON |
params |
A named character vector of other parameters to add to request. |
customConfig |
list of httr options such as |
Example of params: c(param1="foo", param2="bar")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.