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.
예제 요청
curl -X GET \
"https://api.rememberizer.ai/api/v1/discussions/12345/contents/?integration_type=slack&from=2023-06-01T00:00:00Z&to=2023-06-07T23:59:59Z" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"```python import requests from datetime import datetime, timedelta
def get_slack_contents(discussion_id, from_date=None, to_date=None): headers = { "Authorization": "Bearer YOUR_JWT_TOKEN" }
{% hint style="info" %} YOUR_JWT_TOKEN을 실제 JWT 토큰으로, 12345를 실제 토론 ID로 교체하세요. {% endhint %} {% endtab %} {% endtabs %}
경로 매개변수
discussion_id
정수
필수. 콘텐츠를 검색할 Slack 채널 또는 토론의 ID입니다.
쿼리 매개변수
integration_type
문자열
필수. Slack 콘텐츠를 검색하기 위해 "slack"으로 설정합니다.
from
문자열
GMT+0에서 ISO 8601 형식의 시작 시간. 지정하지 않으면 기본값은 현재입니다.
to
문자열
GMT+0에서 ISO 8601 형식의 종료 시간. 지정하지 않으면 "from" 매개변수의 7일 전입니다.
응답 형식
오류 응답
404
토론을 찾을 수 없음
500
내부 서버 오류
이 엔드포인트는 Slack 채널 또는 직접 메시지 대화의 내용을 검색합니다. 주요 채널 메시지(discussion_content)와 스레드 답글(thread_contents)을 모두 반환합니다. 데이터는 시간 순서대로 정리되어 있으며, 사용자 정보를 포함하여 대화의 맥락을 이해하기 쉽게 만듭니다.
시간 범위 매개변수를 사용하면 특정 기간에 집중할 수 있으며, 이는 최근 활동이나 역사적 논의를 검토하는 데 특히 유용합니다.
Last updated