松弛 API users.identity 不工作

slack API users.identity not working

我正在尝试让我的 python slack 机器人工作。我想获取尝试使用 users.identity API 进行 API 呼叫的用户的信息。但是,我无法让它工作。

有什么提示和想法吗?

这是我得到的错误。

提前致谢。

它不会在 https://api.slack.com/methods/users.identity/test. But if you create an "app/script" where you can authenticate and then request with https://slack.com/api/users.identity?token=xxx 上运行,您将获得对已登录人员的有效响应。使用用户名、用户 ID 和团队 ID