ClickUp
Since Camel 4.9
This component is for receiving events from ClickUp.
Only consumer is supported
Examples
Webhook Mode
The ClickUp component supports usage in the webhook mode using the camel-webhook component.
To enable webhook mode, users need first to add a REST implementation to their application. Maven users, for example, can add netty-http to their pom.xml
file:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-netty-http</artifactId>
</dependency>
In Java DSL:
from("webhook:clickup:<workspaceId>?&authorizationToken=<authorizationToken>&events=taskTimeTrackedUpdated")
.choice()
.when(exchange -> exchange.getIn().getBody() instanceof TaskTimeTrackedUpdatedEvent)
.process(exchange -> {
TaskTimeTrackedUpdatedEvent event = exchange.getIn().getBody(TaskTimeTrackedUpdatedEvent.class);
LOG.info("TaskTimeTrackedUpdatedEvent {}", event);
exchange.getMessage().setBody(event);
})
.otherwise()
.log("Unknown Event: ${body}")
.end();
You can follow the set up webhooks guide to enable and configure the webhook.