第 308 章 Slack 组件

作为 Camel 版本 2.16 可用

slack 组件允许您连接到 Slack 实例,并通过预建立的 Slack 传入的 Webhook 来提供消息正文中包含的消息。

Maven 用户需要将以下依赖项添加到其 pom.xml 中:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-slack</artifactId>
    <version>x.x.x</version>
    <!-- use the same version as your Camel core version -->
</dependency>

308.1. URI 格式

将信息发送到频道。

slack:#channel[?options]

将直接消息发送到 slackuser。

slack:@username[?options]