Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
twitter4j-streamを使ってみる
@Grab('org.twitter4j:twitter4j-stream:2.2.3')
import twitter4j.*
new TwitterStreamFactory().instance.with {
addListener([onStatus:{println "@${it.user.screenName}: ${it.text}"}] as UserStreamAdapter); user()
}
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.