You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/10/13 06:30:13 UTC

[camel] 02/02: Camel-Slack: Regen docs

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 1bb03d35f29df78397ae9f967c9992cab98b77f9
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Oct 13 08:28:44 2020 +0200

    Camel-Slack: Regen docs
---
 .../resources/org/apache/camel/catalog/docs/slack-component.adoc    | 6 +++++-
 docs/components/modules/ROOT/pages/slack-component.adoc             | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/slack-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/slack-component.adoc
index 7a97661..fb617b3 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/slack-component.adoc
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/slack-component.adoc
@@ -178,6 +178,10 @@ from("slack://general?token=RAW(<YOUR_TOKEN>)&maxResults=1")
 
 In this way you'll get the last message from general channel. The consumer will take track of the timestamp of the last message consumed and in the next poll it will check from that timestamp.
 
-IMPORTANT: Add the `channels:history` user token scope to your app to grant it permission to view messages in the user's public channels.
+You'll need to create a Slack app and use it on your workspace.
+
+Use the 'Bot User OAuth Access Token' as token for the consumer endpoint.
+
+IMPORTANT: Add the `channels:history` and `channels:read` user token scope to your app to grant it permission to view messages in the user's public channels.
 
 include::camel-spring-boot::page$slack-starter.adoc[]
diff --git a/docs/components/modules/ROOT/pages/slack-component.adoc b/docs/components/modules/ROOT/pages/slack-component.adoc
index e731f9b..6b1a617 100644
--- a/docs/components/modules/ROOT/pages/slack-component.adoc
+++ b/docs/components/modules/ROOT/pages/slack-component.adoc
@@ -180,6 +180,10 @@ from("slack://general?token=RAW(<YOUR_TOKEN>)&maxResults=1")
 
 In this way you'll get the last message from general channel. The consumer will take track of the timestamp of the last message consumed and in the next poll it will check from that timestamp.
 
-IMPORTANT: Add the `channels:history` user token scope to your app to grant it permission to view messages in the user's public channels.
+You'll need to create a Slack app and use it on your workspace.
+
+Use the 'Bot User OAuth Access Token' as token for the consumer endpoint.
+
+IMPORTANT: Add the `channels:history` and `channels:read` user token scope to your app to grant it permission to view messages in the user's public channels.
 
 include::camel-spring-boot::page$slack-starter.adoc[]