Submits a GET command against a REST API

call_that_api_get(
  api_connection,
  endpoint = "",
  query = NULL,
  headers = list(),
  ...
)

Arguments

api_connection

A call_that_connection object

endpoint

The name of the API's endpoint. Defaults to an empty character vector.

query

The body or query sent to the REST API.

headers

A list object containing a named list of headers to pass to the API.

...

Other arguments to pass to the REST API call.

Value

An httr request object