#' Get queue properties
#'
#' Get the data for a single queue.
#'
#' @param queue (character) The queue
#' @param ... Other arguments passed to \code{\link{rt_GET}}
#'
#' @export
#'
#' @examples
#' \dontrun{
#' rt_queue_properties("General")
#' }
rt_queue_properties <- function(queue, ...) {
stopifnot(is.character(queue))
url <- rt_url("queue", queue)
response <- rt_GET(url, ...)
# Handle queue not found
if (stringr::str_detect(response$body, "No queue named")) {
stop("No queue named ", queue, " exists.", call. = FALSE)
}
parse_rt_properties(response$body)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.