我们正在尝试设置到 slack 的深度链接,如下所述:
https://api.slack.com/docs/deep-linking
文档指出要打开特定的团队,应使用以下 URL:
slack://open?team={TEAM_ID}
Open Slack and switch teams to the specified team. The provided TEAM_ID should be a string, like T12345.
此外,要在团队中打开 channel ,应使用以下 URL:
slack://channel?team={TEAM_ID}&id={CHANNEL_ID}
Open the channel specified by the CHANNEL_ID provided in the id field, like C024BE91L. You must also specify the team with a TEAM_ID.
我的问题很简单。我在哪里可以找到我需要的 TEAM_ID 和我需要的 CHANNEL_ID?
最佳答案
这是手动查找 slack ID 的最简单方法
1。任意 channel ID
打开 slack 网页 ( http://yourteam.slack.com ) 然后简单地打开 channel 。 channel ID 显示在浏览器 URL 中:
2。任何用户ID
要查找用户 ID,您需要打开浏览器开发工具控制台并检查边栏中的用户链接。用户 ID 可以在 HTML 属性“data-member-id”中找到:
或在 slack 中:(1) 单击用户名并选择 (2)“显示个人资料”。然后打开“...”菜单,您会看到选项 (3)“复制成员(member) ID ...”-要通过 UI 获取您自己的用户 ID,您必须单击顶部的团队 Logo -左下角,然后选择“个人资料和帐户”(屏幕截图中未包含此内容)
3。团队编号
只需打开浏览器的开发工具,切换到“控制台”选项卡,然后在控制台中输入文本 boot_data.team_id
。这将显示您的团队 ID:
关于html - 查找 slack 团队 ID 和 channel ID 的最简单方法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40940327/