-
Notifications
You must be signed in to change notification settings - Fork 9
/
get_card.R
53 lines (45 loc) · 1.21 KB
/
get_card.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#' 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, ...)
}