JVM since0.2.0 Native since0.1.0
Send tweets and receive tweets, direct messages and access Twitter Search
What’s inside
-
Twitter Direct Message component, URI syntax:
twitter-directmessage:user -
Twitter Search component, URI syntax:
twitter-search:keywords -
Twitter Timeline component, URI syntax:
twitter-timeline:timelineType
Please refer to the above links for usage and configuration details.
Maven coordinates
Or add the coordinates to your existing project:
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-twitter</artifactId>
</dependency> Check the User guide for more information about writing Camel Quarkus applications.
Camel Quarkus limitations
The Twitter Java client parses timestamps with Locale.US. In native mode, GraalVM includes only the build machine locale by default. A non-English locale (for example French) then fails to parse Twitter API responses.
Set the default locale to en-US in application.properties:
quarkus.default-locale=en-US See also Locale in native mode.
SSL in native mode
This extension auto-enables SSL support in native mode. Hence you do not need to add quarkus.ssl.native=true to your application.properties yourself. See also Quarkus SSL guide.