- Startup
- Business
- Enterprise
- On-Premise
- Add-on
About streaming from Twitter
The Twitter API platform offers two options for streaming real-time Tweets: follow a Twitter user or track keywords.
Create a Twitter Stream Feed Connection to stream Twitts in real-time.
Prerequisites
To stream data from Twitter, you first need to create a Twitter app (if you have not done it already).
Create a Connection
Step 1. In the Connections
window, click +
, and select Twitter
.
Step 2. Select Twitter Streaming Feed
.
Step 3. Enter the Connection parameters:
Connection parameters
User IDs or Hashtags
: comma-separated list of numeric Twitter User IDs to follow or (not and!) a comma-separated list of keywords (#hashtags) to track.Consumer Key
: the consumer key, assigned to the Twitter app created by you.Consumer Secret
: the consumer secret, assigned to the Twitter app created by you.Access Token
: the access token assigned to the Twitter app created by you.Access Token Secret
: the access token secret, assigned to the Twitter app created by you.Stream Duration (sec)
: the duration of the stream in seconds. The maximum duration is 999 seconds. The Connection to the Twitter API will reset once the time elapses the configured number.Flatten Status
: Twitter streaming API returns highly nested JSON document. Enable this parameter to convert nested JSON into the flat one.Template
: since this Connection cannot sample the data to populate fields for the Mapping, use this field to define the structure of the returned JSON. Example:
-
{"createdAt":1556736197000,"id":1123659171822473218,"text":"twitt",
"lang":"en","userId":1113524423,
"userName":"test","userScreenName":"test",
"userEmail":null,"userURL":"url"}
Comments
0 comments
Please sign in to leave a comment.