post_slack | R Documentation |
Safely call a Slack API method, with automatic pagination.
post_slack( slack_method, token = Sys.getenv("SLACK_API_TOKEN"), max_results = Inf, max_calls = Inf, limit = 1000L, ..., rate_limit )
slack_method |
Character. The Slack API method to call, such as "conversations.history". |
token |
Character. Your Slack API token. |
max_results |
Integer. The maximum number of results to return (total).
Note: The actual maximum will be |
max_calls |
Integer. The maximum number of separate API calls to make while constructing the response. Default: Inf |
limit |
Integer. The number of results to fetch per call. Default: 1000L |
... |
Additional arguments to pass to the body of the method call. Note:
if you pass an explicit |
rate_limit |
Integer. The maximum number of calls to make to this function per minute. If NULL, calls will not be rate-limited. If unset, calls will be limited per the rate limit guides in the Slack api method documentation, if known. Note: If a limit is set for this method in any call in this session, that rate limit will be respected until rate_limit is set to NULL. Default: None. |
A list with an additional class corresponding to slack_method
.
## Not run: post_slack( slack_method = "conversations.history", channel = "general", token = "my_api_token" ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.