檢索 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