Tweet Stream
The Tweet Stream operator receives a stream of tweets filtered by some key words specified in the configuration using the Twitter Streaming API.
Configuration Parameters
Parameter |
Type |
Description |
---|---|---|
filterWords | string | The key words used to filter the tweet stream. The field cannot be empty. Commas ',' can be used between the terms in the input string as an OR logic operator, and spaces can be used as the 'AND' operator. |
language | string | Mandatory. Filter the tweet by the given language. |
consumerKey |
string |
Mandatory. Your Twitter Application Consumer Key (API Key). |
consumerSecret |
string |
Mandatory. Your Twitter Application Consumer Secret (API Secret). |
accessToken |
string |
Mandatory. The token used to make API requests on behalf of your account. |
accessTokenSecret |
string |
Mandatory. The secret token used to make API requests on behalf of your account. |
Input
None
Output
Output |
Type |
Description |
---|---|---|
outTweet |
message |
A Data Pipeline message where the body contains the tweet text, and the header contain metadata about the tweet. The type fields in the metadata can be found at https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/tweet-object |
outStatus |
string |
A status string that contain a status code returned by the twitter api. |