Recuperar conteúdo do Slack
Recuperar o conteúdo do 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.
Exemplo de Requisições
Obter conteúdos do Slack da última semana
to_date = datetime.now().isoformat() + "Z" from_date = (datetime.now() - timedelta(days=7)).isoformat() + "Z"
get_slack_contents(12345, from_date, to_date)
Respostas de Erro
404
Discussão não encontrada
500
Erro interno do servidor
Este endpoint recupera o conteúdo de um canal do Slack ou de uma conversa de mensagem direta. Ele retorna tanto as mensagens principais do canal (discussion_content) quanto as respostas em thread (thread_contents). Os dados são organizados cronologicamente e incluem informações do usuário, facilitando a compreensão do contexto das conversas.
Os parâmetros de intervalo de tempo permitem que você se concentre em períodos específicos, o que é particularmente útil para revisar atividades recentes ou discussões históricas.
Last updated