R/get_card.R

Defines functions get_card_fields_values get_card_fields get_card_members get_card_labels get_card_comments get_card_checklists get_card_actions

Documented in get_card_actions get_card_checklists get_card_comments get_card_fields get_card_fields_values get_card_labels get_card_members

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

#' @export
#' @rdname get_card
get_card_actions = function(id, ...) {
  get_resource(parent = "card", child = "actions", id = id, ...)
}

#' @export
#' @rdname get_card
get_card_checklists = function(id, ...) {
  get_resource(parent = "card", child = "checklists", id = id, ...)
}

#' @export
#' @rdname get_card
get_card_comments = function(id, ...) {
  get_resource(parent = "card", child = "actions", id = id,
               filter = "commentCard", ...)
}

#' @export
#' @rdname get_card
get_card_labels = function(id, ...) {
  get_resource(parent = "card", child = "labels", id = id, ...)
}

#' @export
#' @rdname get_card
get_card_members = function(id, ...) {
  get_resource(parent = "card", child = "members", id = id, ...)
}

#' @export
#' @rdname get_card
get_card_fields = function(id, ...) {
  get_resource(parent = "card", child = "customFields", id = id, ...)
}

#' @export
#' @rdname get_card
get_card_fields_values = function(id, ...) {
  get_resource(parent = "card", child = "customFieldItems", id = id, ...)
}

Try the trelloR package in your browser

Any scripts or data that you put into this service are public.

trelloR documentation built on Aug. 28, 2023, 1:07 a.m.