slack-rs / slack-rs-api

Rust interface for the Slack Web API
Apache License 2.0
109 stars 66 forks source link

Legacy tester tokens may no longer be created #102

Open bar9 opened 3 years ago

bar9 commented 3 years ago

In the examples you're referring to legacy tokens, however these cannot be created anymore. I there an alternative?

silverjam commented 3 years ago

@bar9 at the bottom of the page here: https://api.slack.com/rtm#classic -- you can create a "classic" slack app, which will allow you to create a bot user which will contain a token that can be used to auth with the slack API (without going through an oauth flow, if the app is manually installed to your slack workspace).

Though, you may still run into issues with this, I created a workaround here: https://github.com/slack-rs/slack-rs-api/pull/105 -- but depending on how you're pulling in this library you may need to use the other forks I created to get this working:

No idea if this workaround works for other parts of the Slack API.