What is the simplest way to find a slack team ID and a channel ID?

后端 未结 9 870
时光取名叫无心
时光取名叫无心 2020-12-07 10:46

We are trying to setup deep linking into slack, as described here:

https://api.slack.com/docs/deep-linking

The document states that to open a specific team,

9条回答
  •  生来不讨喜
    2020-12-07 11:10

    The answer marked correct here does not work for me, but I may have found an even easier way with test tokens.

    1. Create a test token: https://api.slack.com/docs/oauth-test-tokens

    2. Scroll down to the "try it now!" button. You land on auth.test: https://api.slack.com/methods/auth.test/test

    3. Choose the team you want to test and click Test Method. You can find your team_id (and user_id) there.

    4. Do the same for channels.list. You can click "View Another Method" and search or go to: https://api.slack.com/methods/channels.list/test

    5. Choose the team again and Test Method. Cmd+F through the channels object looking for whatever channel_ids you need.

提交回复
热议问题