R/list_docs.R

Defines functions list_docs

Documented in list_docs

#' List Documents
#'
#' A list of document resources owned by the calling account.
#' 
#' @param \dots Additional arguments passed to \code{\link{captr_GET}}.
#' 
#' @return data.frame
#' Prints total number of documents by default.
#' 
#' @export
#' @references \url{https://shreddr.captricity.com/developer/api-reference/#v1-documents}
#' 
#' @examples \dontrun{
#' list_docs()
#' }

list_docs <- function(...) {

  res <- captr_GET("document/", ...)

  cat("No. of document resources:", nrow(res), "\n")

  res
}

Try the captr package in your browser

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

captr documentation built on May 30, 2017, 6:39 a.m.