Skip to content

Commit 344b168

Browse files
author
hriprsd
authored
update readme
1 parent 08faec4 commit 344b168

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ Source Configuration
3131
To setup an Incoming Webhook, go to
3232
<https://my.slack.com/services/new/incoming-webhook/>.
3333

34+
To get oauth_token, create a slack bot user, got to
35+
<https://api.slack.com/apps>.
36+
3437
- `url`: *Required.* The webhook URL as provided by Slack. Usually
3538
in the form: `https://hooks.slack.com/services/XXXX`.
3639

@@ -70,7 +73,7 @@ To setup an Incoming Webhook, go to
7073
Each entry specifies the x509 CA certificate for the trusted
7174
domain.
7275

73-
Example:
76+
Example with webhook:
7477

7578
```yaml
7679
resources:
@@ -80,6 +83,16 @@ resources:
8083
url: https://hooks.slack.com/services/XXXX
8184
```
8285

86+
Example with oauth_token:
87+
88+
```yaml
89+
resources:
90+
- name: slack-alert
91+
type: slack-notification
92+
source:
93+
token: xoxb-********-*******
94+
```
95+
8396
Behavior
8497
--------
8598

0 commit comments

Comments
 (0)