Skip to content

Commit a7cbc0b

Browse files
animeshk08valeriocos
authored andcommitted
[doc] Add Slack API token generation info
This commit adds documentation for creation of API token for the Slack backend. Slack apps can be used to generate an API token. A script to generate the token is also linked. This change was necessary since the documentation was lacking this information. Additionally, legacy tokens are deprecated since May 5, 2020. Slack proposes the use of Slack apps as the new alternative. Ref: https://api.slack.com/changelog/2020-02-legacy-test-token-creation-to-retire Signed-off-by: Animesh Kumar <[email protected]>
1 parent 6d1bac9 commit a7cbc0b

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,18 @@ $ perceval rss 'https://blog.bitergia.com/feed/'
327327
```
328328

329329
### Slack
330+
331+
Slack backend requires an API token for authentication. Slack apps can be
332+
used to generate and configure this API token. The scopes required by a Slack
333+
app for the backend are `channels:history`, `channels:read` and `users:read`.
334+
To know more about Slack apps and its integration please refer the
335+
[Slack apps documentation](https://api.slack.com/start/overview).
336+
For more information about the scopes required by a Slack app please refer the
337+
[Scopes and permissions documentation](https://api.slack.com/scopes).
338+
339+
The following [script](https://gist.github.com/valeriocos/de31324625a3fab32449cf5d43b24075)
340+
can also be used to generate an OAuth2 token to access the Slack API.
341+
330342
```
331343
$ perceval slack C0001 --from-date 2016-01-12 -t abcedefghijk
332344
```

0 commit comments

Comments
 (0)