R/listCrawls.R

Defines functions listCrawl

Documented in listCrawl

#' list Crawls
#'
#' @details
#'
#' not documented : experimental
#'
#'
#' @examples
#' \dontrun{
#' crawls <- listCrawl()
#' }
#' @return Json
#' @author Vincent Terrasi
#' @export
listCrawl <- function() {

  hdr  <- c(Accept="application/json"
          ,Authorization=paste("Bearer",token)
  )

  reply <- getURL("https://self.cocon.se/API/crawl",
              header= TRUE,
              headerfunction = h$update,
              httpheader = hdr,
              verbose = TRUE)

  info <- getCurlInfo(curl)

  print(reply)

}
voltek62/writingAssistantR documentation built on May 4, 2019, 7:41 p.m.