conversations_history: Fetches a conversation's history of messages and events.

View source: R/conversations.R

conversations_historyR Documentation

Fetches a conversation's history of messages and events.

Description

Fetches a conversation's history of messages and events.

Usage

conversations_history(
  token = Sys.getenv("SLACK_TOKEN"),
  channel,
  cursor = NULL,
  inclusive = NULL,
  latest = NULL,
  limit = NULL,
  oldest = NULL,
  return_response = F
)

Arguments

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)

Details

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 .

See Also

https://api.slack.com/methods/conversations.history


samterfa/slackme documentation built on April 11, 2022, 3:29 a.m.