Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import twitter4j.*
import twitter4j.conf.*
def twitter = new TwitterFactory().instance
def stream = new TwitterStreamFactory().getInstance(twitter.getOAuthAccessToken())
stream.addListener(new UserStreamAdapter() {
void onStatus(Status status) {
println "<@${status.user.screenName}> ${status.text}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.