R/rt_ticket_attachment.R

Defines functions rt_ticket_attachment

Documented in rt_ticket_attachment

#' Get ticket attachment
#'
#' Retrieves attachment metadata
#'
#' @param ticket_id (numeric) The ticket identifier
#' @param attachment_id (numeric) The attachment identifier
#' @param ... Other arguments passed to \code{\link{rt_GET}}
#'
#' @export
#'
#' @examples
#' \dontrun{
#' rt_ticket_attachment(2, 1)
#' }
rt_ticket_attachment <- function(ticket_id,
                                 attachment_id,
                                 ...) {
  url <- rt_url("ticket", ticket_id, "attachments", attachment_id)
  rt_GET(url, ...)
}
amoeba/rt documentation built on March 7, 2020, 10:01 a.m.