javascript - Slack api 知道两个用户之间的对话是管理员

标签 javascript api slack

我已经成功制作了一个应用程序来进行用户对话,但我想知道如果作为管理员我可以知道我的团队成员之间的所有对话。 Offical Website link对我帮助很大,但无法让 api 了解作为团队管理员的整个对话。

最佳答案

You’d need to create a Slack app and have the user which DM’s you’d like to have access to authenticate against it. This will grant you an access token that you can then use to call the appropriate API endpoints to retrieve these messages.

The im.list method (https://api.slack.com/methods/im.list) returns a list of the calling users DM conversations (https://api.slack.com/types/im - An IM object contains information about a direct message channel).

The im.history method (https://api.slack.com/methods/im.history) returns either a portion or entire history of the direct message channel, depending on the arguments passed when making the call.

To clarify, authorization is on a per user basis. There is no master token that will allow access to all DM’s for an entire team. This is expected behaviour and by design for security and privacy.

以上是Slack Team member的回复,明确表示不能这样做,会导致Slack的隐私政策失效。

关于javascript - Slack api 知道两个用户之间的对话是管理员,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45632971/

相关文章:

javascript - 使用 JavaScript 将字符串与正则表达式匹配

javascript - 如何使用json数据计算Angular中的平均值

r - 从嵌套列表深处提取命名元素的通用方法

python - 如何为 Slack 应用程序创建重定向 URI?

javascript - 无法跨选项卡查看 localstorage 事件

Javascript 将回调函数添加到传递的回调变量中

c - 如何防止内部结构对 API 用户可见?

api - 保护 google chrome 扩展程序中的代码

ruby-on-rails - 具有相同数据库的两个 Rails 应用程序?

instagram - Slack 和 Instagram 直接集成