Inhalte von Slack abrufen
Abrufen des Inhalts von 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.
Beispielanfragen
Holen Sie sich Slack-Inhalte der letzten Woche
to_date = datetime.now().isoformat() + "Z" from_date = (datetime.now() - timedelta(days=7)).isoformat() + "Z"
get_slack_contents(12345, from_date, to_date)
Fehlerantworten
404
Diskussion nicht gefunden
500
Interner Serverfehler
Dieser Endpunkt ruft die Inhalte eines Slack-Kanals oder einer direkten Nachrichtenunterhaltung ab. Er gibt sowohl die Hauptnachrichten des Kanals (discussion_content) als auch die threaded Antworten (thread_contents) zurück. Die Daten sind chronologisch organisiert und enthalten Benutzerinformationen, was es einfach macht, den Kontext von Gesprächen zu verstehen.
Die Zeitbereichsparameter ermöglichen es Ihnen, sich auf bestimmte Zeiträume zu konzentrieren, was besonders nützlich ist, um kürzliche Aktivitäten oder historische Diskussionen zu überprüfen.
Last updated