R/get_list.R

Defines functions get_list_comments get_list_cards get_list_actions

Documented in get_list_actions get_list_cards get_list_comments

#' Get List
#'
#' Returns a flat data frame with list-related data.
#' @param id Board ID
#' @param ... Additional arguments passed to [get_resource()]
#' @seealso [get_resource()]
#' @name get_list
NULL

#' @export
#' @rdname get_list
get_list_actions = function(id, ...) {
    get_resource(parent = "list", child = "actions", id = id, ...)
}

#' @export
#' @rdname get_list
get_list_cards = function(id, ...) {
    get_resource(parent = "list", child = "cards", id = id, ...)
}

#' @export
#' @rdname get_list
get_list_comments = function(id, ...) {
    get_resource(parent = "list", child = "actions", id = id,
                 filter = "commentCard", ...)
}
jchrom/trellor documentation built on Aug. 30, 2023, 7:49 p.m.