twitter timeline source Twitter Timeline Source

Provided by: "Apache Software Foundation"

Support Level for this Kamelet is: "Stable"

Allows to get tweets from the timeline of a specific user from Twitter.

It requires tokens that can be obtained by creating an application in the Twitter developer portal: https://developer.twitter.com/.

Configuration Options

The following table summarizes the configuration options available for the twitter-timeline-source Kamelet:

Property Name Description Type Default Example

accessToken

Access Token

Required The Access Token from the Twitter application in the developer portal.

string

accessTokenSecret

Access Token Secret

Required The Access Token Secret from the Twitter application in the developer portal.

string

apiKey

API Key

Required The API Key from the Twitter application in the developer portal.

string

apiKeySecret

API Key Secret

Required The API Key Secret from the Twitter application in the developer portal.

string

user

User

Required The user we want to read the timeline.

string

ApacheCamel

Dependencies

At runtime, the twitter-timeline-source Kamelet relies upon the presence of the following dependencies:

  • camel:jackson

  • camel:twitter

  • camel:kamelet

Camel JBang usage

Prerequisites

  • You’ve installed JBang.

  • You have executed the following command:

jbang app install camel@apache/camel

Supposing you have a file named route.yaml with this content:

- route:
    from:
      uri: "kamelet:twitter-timeline-source"
      parameters:
        .
        .
        .
      steps:
        - to:
            uri: "kamelet:log-sink"

You can now run it directly through the following command

camel run route.yaml