R/ping.R

Defines functions ping

Documented in ping

#' Title
#'
#' @param token token
#'
#' @export
#'get_channel_id
ping <- function(token=Sys.getenv("SLACK_API_TOKEN")){
  res <- httr::POST(url="https://slack.com/api/auth.test",
                    body=list( token=token
                    ))
  # print(httr::content(res))
  # invisible(channel)
  res$ok
}
VincentGuyader/slack documentation built on July 6, 2023, 2:21 p.m.