A wrapper function to call the Slack API with authentication and pagination.
call_slack_api(
path,
...,
body = NULL,
.method = c("GET", "POST"),
bot_user_oauth_token,
.verbose = Sys.getenv("SLACKR_VERBOSE", "FALSE"),
.next_cursor = ""
)
The API definition path, e.g. /api/auth.test
These arguments must be named and will be added to the API query string
If .method = POST
the body
gets passed to the API body
Either "GET" or "POST"
The Slack bot OAuth token character vector
If TRUE, prints httr
verbose messages. Useful for debugging.
The value of the next cursor, when using pagination.
The API response (a named list)