Created
May 7, 2017 10:39
-
-
Save woky/4befbe05aa5b8050c2d0e94bf67091c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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