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

后端 未结 9 834
时光取名叫无心
时光取名叫无心 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:08

    Here is the easiest way to manually find the slack IDs

    1. Any channel ID

    Open the slack webpage (http://yourteam.slack.com) and then simply open the channel. The channel ID is displayed in the browser URL:


    2. Any user ID

    To find a user ID you need to open your browser dev-tools console and inspect the user-link in the sidebar. The user ID can be found in the HTML attribute "data-member-id":

    Or in slack: (1) Click on the users name and choose (2) "Show Profile". Then open the "..." menu and you see the option (3) "Copy Member-ID ..." - to get your own user ID via the UI, you have to click the Team-Logo in top-left corner and then choose "Profile & Account" (this is not included in the screenshot)


    3. Team ID

    Simply open the dev-tools of your browser, switch to the "Console" tab and enter the text boot_data.team_id into the console. This will display your team ID:

提交回复
热议问题