无法使用传出 webhook 检索松弛消息
unable to retrieve slack messages using outgoing webhooks
我是 Slack Webhooks 的新手,正在尝试使用传出 Webhooks 检索 Slack 频道消息 API。
下面是我的GET API.
API 响应代码:
200 还行
以下是我的回复正文:
{
"ok":错误,
"error": "invalid_auth"
}
任何人都可以建议如何使用 Outgoing Webhook API。提前致谢。
您的令牌应该是 "Bot User OAuth Access Token",它出现在 OAuth 和权限选项卡中并以 xoxb 开头。
在 channel=channelId
中提供 channelId
使用"Bot User OAuth Access Token",在"OAuth and permissions Tab"格式是
xoxb-xxxxx-xxxxx-xxxx。然后添加 scope "channels:history" 并在 slack 中重新安装您的应用程序。然后尝试使用频道 id 获取对话历史记录。
我是 Slack Webhooks 的新手,正在尝试使用传出 Webhooks 检索 Slack 频道消息 API。
下面是我的GET API.
API 响应代码:
200 还行
以下是我的回复正文:
{ "ok":错误, "error": "invalid_auth" }
任何人都可以建议如何使用 Outgoing Webhook API。提前致谢。
您的令牌应该是 "Bot User OAuth Access Token",它出现在 OAuth 和权限选项卡中并以 xoxb 开头。 在 channel=channelId
中提供 channelId使用"Bot User OAuth Access Token",在"OAuth and permissions Tab"格式是 xoxb-xxxxx-xxxxx-xxxx。然后添加 scope "channels:history" 并在 slack 中重新安装您的应用程序。然后尝试使用频道 id 获取对话历史记录。