Skip to content
kfang edited this page Sep 12, 2014 · 2 revisions

#!!!this was for v0.1!!! #Authentication Service ####Request Explicit Login Flow Url

AuthService.requestExplicitUrl(Basic, Comments, Relationships, Likes)

####Request Implicit Login Flow Url

AuthService.requestImplicitUrl(Basic, Comments, Relationships, Likes)

####Request Access Token

AuthService.requestAccessToken(code)

#Users Service ####Request User Information

//for self
UsersService.getInfo("ACCESS_TOKEN")

//for another user
UsersService.getInfo("USER_ID", "ACCESS_TOKEN")

#Relationships Service ####Request User's Follows

//for self
val fr: Future[FollowsResponse] = RelationshipsService.getFollows("ACCESS_TOKEN")

//for another user
val fr: Future[FollowsResponse] = RelationshipsService.getFollows("USER_ID", "ACCESS_TOKEN")

//pagination
// - if there is no next, it will return an empty list in 'data'
// - you can also check if there is a next with 'fr.map(_.hasNext)'
fr.flatMap(_.next)
Clone this wiki locally