R/read_values.R

read_values_api <- function(url, auth_header) {
  req <- GET(url, add_headers(Authorization = auth_header))
  stop_for_status(req)
  fromJSON(content(req, "text"))
}
lselzer/bcraR documentation built on May 21, 2019, 8:40 a.m.