do_request {epidatr}R Documentation

performs the request

Description

You can test the authentication headers like so:

Usage

do_request(url, params, timeout_seconds)

Examples

## Not run: 
response <- httr::RETRY(
  "GET", "https://httpbin.org/headers",
  httr::authenticate("epidata", "fake_key")
)
content(response)$headers$Authorization == paste0(
  "Basic ",
  base64enc::base64encode(charToRaw("epidata:fake_key"))
)

## End(Not run)


[Package epidatr version 1.2.0 Index]