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 2022/03/10 13:10:37 UTC

[camel] branch slack-docs-3.14.x created (now 6055166)

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

acosentino pushed a change to branch slack-docs-3.14.x
in repository https://gitbox.apache.org/repos/asf/camel.git.


      at 6055166  Camel-Slack: Improved information about consumer and permissions

This branch includes the following new commits:

     new 6055166  Camel-Slack: Improved information about consumer and permissions

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[camel] 01/01: Camel-Slack: Improved information about consumer and permissions

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch slack-docs-3.14.x
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 60551665a0945c4c3733c5fc91a3cb1a9a78f6bb
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Mar 10 13:45:10 2022 +0100

    Camel-Slack: Improved information about consumer and permissions
---
 .../camel-slack/src/main/docs/slack-component.adoc | 31 +++++++++++++++++-----
 1 file changed, 25 insertions(+), 6 deletions(-)

diff --git a/components/camel-slack/src/main/docs/slack-component.adoc b/components/camel-slack/src/main/docs/slack-component.adoc
index 7a0e0fd..4be2ae6 100644
--- a/components/camel-slack/src/main/docs/slack-component.adoc
+++ b/components/camel-slack/src/main/docs/slack-component.adoc
@@ -143,11 +143,31 @@ In this way you'll get the last message from general channel. The consumer will
 
 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 corresponding history (`channels:history` or `groups:history` or `mpim:history` or `im:history`) and
-read (`channels:read` or `groups:read` or `mpim:read` or `im:read`) user token scope to your app to grant it permission to
-view messages in the corresponding channel. You will need to use the conversationType option to set it up too (`PUBLIC_CHANNEL`, `PRIVATE_CHANNEL`, `MPIM`, `IM`)
+Use the 'User OAuth Token' as token for the consumer endpoint.
+
+IMPORTANT: Add the corresponding history (`channels:history`, `groups:history`, `mpim:history` and `im:history`) and
+read (`channels:read`, `groups:read`, `mpim:read` and `im:read`) user token scope to your app to grant it permission to
+view messages in the corresponding channel.
+
+For Bot tokens you'll need the following permissions:
+- channels:history
+- groups:history
+- im:history
+- mpim:history
+- channels:read
+- groups:read
+- im:read
+- mpim:read
+
+For User tokens you'll need the following permissions:
+- channels:history
+- groups:history
+- im:history
+- mpim:history
+- channels:read
+- groups:read
+- im:read
+- mpim:read
 
 The naturalOrder option allows consuming messages from the oldest to the newest.
 Originally you would get the newest first and consume backward (message 3 => message 2 => message 1)
@@ -155,5 +175,4 @@ Originally you would get the newest first and consume backward (message 3 => mes
 IMPORTANT: You can use the conversationType option to read history and messages from a channel that is not only public
 (`PUBLIC_CHANNEL`,`PRIVATE_CHANNEL`, `MPIM`, `IM`)
 
-
 include::spring-boot:partial$starter.adoc[]