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.
例リクエスト
過去1週間の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