Skip to content

How to use FilteredStream #443

Answered by redouane59
santeiro asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, here is an example :

public void start() {

    try {
      this.streamResponse = TWITTER_CLIENT.startFilteredStream(new IAPIEventListener() {
        @SneakyThrows
        @Override
        public void onStreamError(final int httpCode, final String error) {
          // ...
        }

        @Override
        public void onTweetStreamed(final Tweet tweet) {
             // ...
        }

        @Override
        public void onUnknownDataStreamed(final String json) {
          // ...
        }

        @Override
        public void onStreamEnded(final Exception e) {
          // ...
        }
      });
    } catch (Exception e) {
      System.err.println("- error - " + e.getMessa…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@santeiro
Comment options

Answer selected by santeiro
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants