@@ -66,7 +66,7 @@ The `eventType` and `eventSource` CloudEvents attributes are being set for furth
66
66
67
67
# # Slack Target
68
68
69
- Salesforce Target requires :
69
+ Slack Target requires :
70
70
71
71
- Creating a new [Slack App][slack-apps] : add the `chat:write` permission under `Bot Token Scopes`, then install the application at your workspace.
72
72
- A Slack API token : from the **Install App** menu retrieve the OAuth Access token that begins with `xoxb-`.
@@ -130,10 +130,10 @@ spec:
130
130
In order to connect all components we will setup these elements :
131
131
132
132
- A central Broker that receives messages from the Source
133
- - A Trigger that consumes Webhook events filtering by the `webhook.slack.postmessage` type and sends then to the transformation Function.
134
- - A Trigger that consumes transformed events filtering by the `com.slack.webapi.chat.postMessage` type and sends then to the Slack target.
133
+ - A Trigger that consumes Webhook events filtered by the `webhook.slack.postmessage` type and sends them to the transformation Function.
134
+ - A Trigger that consumes transformed events filtered by the `com.slack.webapi.chat.postMessage` type and sends them to the Slack target.
135
135
136
- The Broker name is set to `default` to match the one used at the already created Webhook Source.
136
+ The Broker name is set to `default` to match the one used at the Webhook Source earlier .
137
137
138
138
` ` ` yaml
139
139
apiVersion: eventing.knative.dev/v1
@@ -182,11 +182,10 @@ spec:
182
182
183
183
Retrieve the URL where the Webhook is listening for incoming requests.
184
184
185
- ` ` ` sh
186
- kubectl get webhooksources.sources.triggermesh.io post-message
185
+ ` ` ` console
186
+ $ kubectl get webhooksources.sources.triggermesh.io post-message
187
187
NAME READY REASON URL SINK AGE
188
188
post-message True https://webhooksource-post-message.woodford.dev.triggermesh.io http://broker-ingress.knative-eventing.svc.cluster.local/woodford/default 61s
189
- ` ` `
190
189
191
190
Use ` curl` or any HTTP capable client to post messages at Slack.
192
191
0 commit comments