检索 Slack 的内容
获取 Slack 的内容
Returns the content of the discussion with the specified ID. A discussion can be a Slack or Discord chat. The response contains two fields: discussion_content, which includes the main messages of the chat, and thread_contents, which contains the threads of the discussion.
The ID of the discussion to retrieve contents for. Discussions are either Slack or Discord chats.
Indicate the integration of the discussion. Currently, it can only be "slack" or "discord".
Indicate the starting time when we want to retrieve the content of the discussion in ISO 8601 format at GMT+0. If not specified, the default time is now.
Indicate the ending time when we want to retrieve the content of the discussion in ISO 8601 format at GMT+0. If not specified, it is 7 days before the "from" parameter.
Main and threaded messages of the discussion in a time range.
Discussion not found.
Internal server error.
示例请求
获取过去一周的 Slack 内容
to_date = datetime.now().isoformat() + "Z" from_date = (datetime.now() - timedelta(days=7)).isoformat() + "Z"
get_slack_contents(12345, from_date, to_date)
错误响应
404
找不到讨论
500
服务器内部错误
此端点检索 Slack 频道或直接消息对话的内容。它返回主要频道消息(discussion_content)和线程回复(thread_contents)。数据按时间顺序组织,并包含用户信息,使理解对话的上下文变得容易。
时间范围参数允许您专注于特定时期,这对于回顾近期活动或历史讨论特别有用。
Last updated