get_batch {trelloR} | R Documentation |
Dispatch a Batch Request
Description
Perform 1 to 10 GET requests at once.
Usage
get_batch(
parent,
child,
ids,
token = NULL,
query = NULL,
on.error = c("stop", "warn", "message"),
retry.times = 1,
handle = NULL,
verbose = FALSE
)
Arguments
parent |
Parent resource, e.g. |
child |
Child resource, eg. |
ids |
A vector of resource IDs, with maximum length of 10. |
token |
An object of class
|
query |
Named list of key-value pairs, appended to each component
of the batch request. See |
on.error |
Whether to |
retry.times |
How many times to re-try when a request fails. Defaults to 1. |
handle |
The handle to use with this request, see |
verbose |
Set to |
Value
A data frame (or a tibble, if installed).
See Also
get_token()
, get_id()
, httr::GET()
, jsonlite::fromJSON()
Examples
demo_board <- "https://trello.com/b/wVWPK9I4/r-client-for-the-trello-api"
if (FALSE) {
# Download custom field values for 10 cards.
cards <- get_board_cards(demo_board, limit = 10)
values <- get_batch(
parent = "card",
child = "customFieldItems",
ids = cards$id
)
values
}