Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

update twittercbr for Twitter4J 3.0.x and TwitterAPI1.1 #3

Merged
merged 1 commit into from

2 participants

@tkobayas

update twittercbr for Twitter4J 3.0.x to use Twitter API 1.1.

Twitter API 1.0 will be retired on March 5th, 2013.

@ge0ffrey ge0ffrey merged commit 5b6ad6c into droolsjbpm:master
@ge0ffrey
Owner

Merged, because this repo, droolsjbpm-contributed-experiments, is basically free for all...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 30, 2013
  1. @tkobayas
This page is out of date. Refresh to see the latest.
View
4 twittercbr/pom.xml
@@ -49,12 +49,12 @@
<dependency>
<groupId>org.twitter4j</groupId>
<artifactId>twitter4j-core</artifactId>
- <version>[2.2,)</version>
+ <version>[3.0,)</version>
</dependency>
<dependency>
<groupId>org.twitter4j</groupId>
<artifactId>twitter4j-stream</artifactId>
- <version>[2.2,)</version>
+ <version>[3.0,)</version>
</dependency>
</dependencies>
View
5 twittercbr/src/main/java/org/drools/examples/twittercbr/TwitterStatusListener.java
@@ -2,6 +2,7 @@
import org.drools.runtime.rule.WorkingMemoryEntryPoint;
+import twitter4j.StallWarning;
import twitter4j.Status;
import twitter4j.StatusDeletionNotice;
import twitter4j.StatusListener;
@@ -32,4 +33,8 @@ public void onDeletionNotice( StatusDeletionNotice statusDeletionNotice ) {}
public void onTrackLimitationNotice( int numberOfLimitedStatuses ) {}
public void onScrubGeo( long userId, long upToStatusId ) {}
public void onException( Exception ex ) {}
+
+ @Override
+ public void onStallWarning(StallWarning arg0) {
+ }
}
View
4 twittercbr/src/main/java/org/drools/examples/twittercbr/offline/TwitterDumper.java
@@ -21,6 +21,7 @@
import java.io.IOException;
import java.io.ObjectOutputStream;
+import twitter4j.StallWarning;
import twitter4j.Status;
import twitter4j.StatusDeletionNotice;
import twitter4j.StatusListener;
@@ -60,6 +61,9 @@ public void onStatus( Status arg0 ) {
System.exit( 0 );
}
}
+ @Override
+ public void onStallWarning(StallWarning arg0) {
+ }
};
StatusStream stream = twitterStream.getSampleStream();
long start = System.currentTimeMillis();
View
BIN  twittercbr/src/main/resources/twitterstream.dump
Binary file not shown
Something went wrong with that request. Please try again.