Call API
call_api.RdHigh level implementation of 'curl' fetch to memory.
Details
url must start with "https://".
The values in header must be character strings (see examples).
The list of options can be accessed with curl::curl_options().
When raw is FALSE, the content (& headers) of the response will be converted
into character strings.
Examples
if (FALSE) { # \dontrun{
call_api(url = "https://some/url", header = list(Accept = "application/json"))
} # }