Package 'trellor'

Title: 'Trello' 'API'
Description: A client to access the 'Trello' 'API'.
Authors: Jon Harmon [aut, cre]
Maintainer: Jon Harmon <[email protected]>
License: MIT + file LICENSE
Version: 0.0.0.9000
Built: 2024-10-30 03:30:28 UTC
Source: https://github.com/jonthegeek/trellor

Help Index


Call the Trello API

Description

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.