Skip to content

Commit 9e46b09

Browse files
committed
Update README concerning OAuth and legacy tokens
1 parent 1489711 commit 9e46b09

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ A Ruby client for the Slack [Web](https://api.slack.com/web), [RealTime Messagin
1616
- [Installation](#installation)
1717
- [Usage](#usage)
1818
- [Create a New Bot Integration](#create-a-new-bot-integration)
19-
- [Use the API Token](#use-the-api-token)
19+
- [OAuth Code Grant](#oauth-code-grant)
20+
- [Using the Legacy API Token](#using-the-legacy-api-token)
2021
- [Global Settings](#global-settings)
2122
- [Web Client](#web-client)
2223
- [Test Auth](#test-auth)
@@ -88,11 +89,17 @@ Run `bundle install`.
8889

8990
### Create a New Bot Integration
9091

91-
This is something done in Slack, under [integrations](https://my.slack.com/services). Create a [new bot](https://my.slack.com/services/new/bot), and note its API token.
92+
To integrate your bot with Slack, you must first create a new [Slack App](https://api.slack.com/apps).
9293

93-
![](screenshots/register-bot.png)
94+
![](screenshots/create-app.png)
9495

95-
### Use the API Token
96+
### OAuth Code Grant
97+
98+
Once created, go to the app's Basic Info tab and grab the Client ID and Client Secret. You'll need these in order complete an [OAuth code grant flow](https://api.slack.com/docs/oauth#flow) as described at [slack-ruby-bot-server](https://github.com/slack-ruby/slack-ruby-bot-server).
99+
100+
### Using the Legacy API Token
101+
102+
Although OAuth is recommended, you can still [generate a legacy API token](https://api.slack.com/custom-integrations/legacy-tokens) for your app and use it for some interactions.
96103

97104
```ruby
98105
Slack.configure do |config|

screenshots/create-app.png

85 KB
Loading

screenshots/register-bot.png

-167 KB
Binary file not shown.

0 commit comments

Comments
 (0)