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")
)
the url of the page to retrieve
the type of httr request function: GET, POST, PUT, DELETE etc.
body of POST request
Passed to jsonlite::fromJSON
A named character vector of other parameters to add to request.
list of httr options such as httr::use_proxy
or httr::add_headers
that will be added to the request.
Example of params: c(param1="foo", param2="bar")