Copyright | (c) 2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Lists the scores in a leaderboard, starting from the top.
See: Google Play Game Services API Reference for games.scores.list
.
- type ScoresListResource = "games" :> ("v1" :> ("leaderboards" :> (Capture "leaderboardId" Text :> ("scores" :> (Capture "collection" ScoresListCollection :> (QueryParam "timeSpan" ScoresListTimeSpan :> (QueryParam "language" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get `[JSON]` LeaderboardScores))))))))))
- scoresList :: ScoresListCollection -> ScoresListTimeSpan -> Text -> ScoresList
- data ScoresList
- sllCollection :: Lens' ScoresList ScoresListCollection
- sllTimeSpan :: Lens' ScoresList ScoresListTimeSpan
- sllLeaderboardId :: Lens' ScoresList Text
- sllLanguage :: Lens' ScoresList (Maybe Text)
- sllPageToken :: Lens' ScoresList (Maybe Text)
- sllMaxResults :: Lens' ScoresList (Maybe Int32)
REST Resource
type ScoresListResource = "games" :> ("v1" :> ("leaderboards" :> (Capture "leaderboardId" Text :> ("scores" :> (Capture "collection" ScoresListCollection :> (QueryParam "timeSpan" ScoresListTimeSpan :> (QueryParam "language" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get `[JSON]` LeaderboardScores)))))))))) Source
A resource alias for games.scores.list
method which the
ScoresList
request conforms to.
Creating a Request
Creates a value of ScoresList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ScoresList Source
Lists the scores in a leaderboard, starting from the top.
See: scoresList
smart constructor.
Request Lenses
sllCollection :: Lens' ScoresList ScoresListCollection Source
The collection of scores you're requesting.
sllTimeSpan :: Lens' ScoresList ScoresListTimeSpan Source
The time span for the scores and ranks you're requesting.
sllLeaderboardId :: Lens' ScoresList Text Source
The ID of the leaderboard.
sllLanguage :: Lens' ScoresList (Maybe Text) Source
The preferred language to use for strings returned by this method.
sllPageToken :: Lens' ScoresList (Maybe Text) Source
The token returned by the previous request.
sllMaxResults :: Lens' ScoresList (Maybe Int32) Source
The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified maxResults.