This is an automated email from the ASF dual-hosted git repository. zbendhiba pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new 70541aa Slack doc (#7199) 70541aa is described below commit 70541aa954fdc77dfdce20e8fc2000a84b02cdce Author: Zineb BENDHIBA <bendhiba.zi...@gmail.com> AuthorDate: Mon Mar 14 14:15:40 2022 +0100 Slack doc (#7199) * Improve slack documentation to add permission scopes for Producer * Slack documentation: fix format --- .../camel-slack/src/main/docs/slack-component.adoc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/components/camel-slack/src/main/docs/slack-component.adoc b/components/camel-slack/src/main/docs/slack-component.adoc index 4be2ae6..d75e42d 100644 --- a/components/camel-slack/src/main/docs/slack-component.adoc +++ b/components/camel-slack/src/main/docs/slack-component.adoc @@ -129,6 +129,23 @@ You can now use the Slack API model to create blocks. You can read more about it } --------------------------------------------------------------------------------------------------------------------------- +You'll need to create a Slack app and use it on your workspace. + +For token usage, set the 'OAuth Token'. + +IMPORTANT: Add the corresponding (`channels:history`, `chat:write`) user token scopes to your app to grant it permission to +write messages in the corresponding channel. You'll also need to invite the Bot or User to the corresponding channel. + +For Bot tokens you'll need the following permissions: + +- channels:history +- chat:write + +For User tokens you'll need the following permissions: + +- channels:history +- chat:write + == Consumer You can use also a consumer for messages in channel @@ -150,6 +167,7 @@ read (`channels:read`, `groups:read`, `mpim:read` and `im:read`) user token scop view messages in the corresponding channel. For Bot tokens you'll need the following permissions: + - channels:history - groups:history - im:history @@ -160,6 +178,7 @@ For Bot tokens you'll need the following permissions: - mpim:read For User tokens you'll need the following permissions: + - channels:history - groups:history - im:history