fullstackpython.com icon indicating copy to clipboard operation
fullstackpython.com copied to clipboard

Obtaining API token for Slack StarterBot

Open mwunderlich opened this issue 8 years ago • 5 comments

Hi Matt,

Thanks a lot for your very helpful tutorial about creating a first slack bot in python (https://www.fullstackpython.com/blog/build-first-slack-bot-python.html). I have tried to follow the instructions, but the place for obtaining the bot's API token seems to have changed. The section "Integration Settings" also no longer seems to be available on the Slack API site. Maybe it's just me not being able to find it, but you might want to take quick look into it, when you have time. Thanks a lot.

Cheers,

Martin

mwunderlich avatar Mar 21 '17 09:03 mwunderlich

Hmm, it's totally possible the way integrations are handled has been changed, but these tutorial steps still seem to work when I go through them. What happens when you click the "a new bot user integration" link to create a bot?

mattmakai avatar Mar 21 '17 22:03 mattmakai

I don't really have that exact link text anywhere. For me, adding a bot is done like this:

bildschirmfoto 2017-03-23 um 11 20 11

Afterwards, the bot user is active, but no API key to be found anywhere.

mwunderlich avatar Mar 23 '17 10:03 mwunderlich

gahhh yea I see it...Slack changed the add bot flow. I'll have to go back through the tutorial and update it for the new screens. thank you for the heads up @mwunderlich! sorry about that :(

mattmakai avatar Mar 23 '17 20:03 mattmakai

Thanks for confirming, Matt. At least, I wasn't imaginging things. I hope it won't be too much trouble updating the tutorial.

mwunderlich avatar Mar 24 '17 06:03 mwunderlich

@mattmakai I think I have found the correct way to retrieve the API token: you need to use the "Bot User OAuth Access Token" listed under "Features>OAuth & Permissions"

mwunderlich avatar Apr 20 '17 14:04 mwunderlich