Skip to contents

Generate a request to an Trello endpoint.

Usage

trello_call_api(
  path,
  query = NULL,
  body = NULL,
  method = NULL,
  key = Sys.getenv("TRELLO_KEY"),
  token = Sys.getenv("TRELLO_TOKEN")
)

Arguments

path

The route to an API endpoint. Optionally, a list with the path plus variables to glue::glue() into the path.

query

An optional list of parameters to pass in the query portion of the request.

body

An object to use as the body of the request. If any component of the body is a path, pass it through fs::path() or otherwise give it the class "fs_path" to indicate that it is a path.

method

If the method is something other than GET or POST, supply it. Case is ignored.

key

An API key provided by the API provider. This key is not clearly documented in the API description. Check the API documentation for details.

token

An API key provided by the API provider. This key is not clearly documented in the API description. Check the API documentation for details.

Value

The response from the endpoint.