Skip to content

Instantly share code, notes, and snippets.

@woky
Created May 7, 2017 10:39
Show Gist options
  • Save woky/4befbe05aa5b8050c2d0e94bf67091c8 to your computer and use it in GitHub Desktop.
Save woky/4befbe05aa5b8050c2d0e94bf67091c8 to your computer and use it in GitHub Desktop.
package wokytwitter
import scala.concurrent.ExecutionContext.Implicits.global
object Main extends App {
import com.danielasfregola.twitter4s.TwitterRestClient
import com.danielasfregola.twitter4s.TwitterStreamingClient
val restClient = TwitterRestClient()
val streamingClient = TwitterStreamingClient()
for {
l <- restClient.listMembersBySlugAndOwnerName("listName", "userName")
} yield {
println(l.data.next_cursor)
// prints some magic number
}
for {
l <- restClient.listMembersBySlugAndOwnerName("listName", "userName", count = 200)
} yield {
println(l.data.next_cursor)
// prints 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment