View source: R/conversations.R
conversations_history | R Documentation |
Fetches a conversation's history of messages and events.
conversations_history( token = Sys.getenv("SLACK_TOKEN"), channel, cursor = NULL, inclusive = NULL, latest = NULL, limit = NULL, oldest = NULL, return_response = F )
token |
Authentication token bearing required scopes. Tokens should be passed as an HTTP Authorization header or alternatively, as a POST parameter. |
channel |
Conversation ID to fetch history for. |
cursor |
Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first "page" of the collection. See pagination for more detail. |
inclusive |
Include messages with latest or oldest timestamp in results only when either timestamp is specified. Default: 0 |
latest |
End of time range of messages to include in results. Default is the current time. |
limit |
The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn't been reached. Default: 100 |
oldest |
Start of time range of messages to include in results. Default: 0 |
return_response |
Whether or not to return the API call response as opposed to the response body. Defaults to FALSE (return response body) |
Information about required scopes This Conversations API method's required scopes depend on the type of channel-like object you're working with. To use the method, you'll need at least one of the channels: , groups: , im: or mpim: scopes corresponding to the conversation type you're working with. Present arguments as parameters in application/x-www-form-urlencoded querystring or POST body. This method does not currently accept application/json .
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.