Class OnlineTweetsProducer

java.lang.Object
tweetoscope.tweetsProducer.TweetsProducer
tweetoscope.tweetsProducer.OnlineTweetsProducer
All Implemented Interfaces:
Runnable, Flow.Publisher<com.twitter.clientlib.model.Tweet>
Direct Known Subclasses:
TwitterFilteredStreamReaderSingleton, TwitterSampledStreamReaderSingleton

@Deprecated public abstract class OnlineTweetsProducer extends TweetsProducer
Deprecated.
Starting April 2023, this class can no longer be used with a "Free" access plan to the Twitter API. It hasn't be tested with the "new" Basic access plan.
Forwards Tweets retrieved live from the Twitter API.

Important note: Requires the BEARER_TOKEN environment variable to be set to connect to the Twitter API endpoint.

Author:
Virginie Galtier
  • Field Details

    • BEARER_TOKEN

      protected static String BEARER_TOKEN
      Deprecated.
      token to access Twitter API endpoint