Copyright | (c) 2015-2016 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 |
Get high scores, and optionally ranks, in leaderboards for the currently authenticated player. For a specific time span, leaderboardId can be set to ALL to retrieve data for all leaderboards in a given time span. NOTE: You cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in the same request; only one parameter may be set to 'ALL'.
See: Google Play Game Services API Reference for games.scores.get
.
Synopsis
- type ScoresGetResource = "games" :> ("v1" :> ("players" :> (Capture "playerId" Text :> ("leaderboards" :> (Capture "leaderboardId" Text :> ("scores" :> (Capture "timeSpan" ScoresGetTimeSpan :> (QueryParam "includeRankType" ScoresGetIncludeRankType :> (QueryParam "language" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] PlayerLeaderboardScoreListResponse))))))))))))
- scoresGet :: ScoresGetTimeSpan -> Text -> Text -> ScoresGet
- data ScoresGet
- sgTimeSpan :: Lens' ScoresGet ScoresGetTimeSpan
- sgLeaderboardId :: Lens' ScoresGet Text
- sgIncludeRankType :: Lens' ScoresGet (Maybe ScoresGetIncludeRankType)
- sgLanguage :: Lens' ScoresGet (Maybe Text)
- sgPageToken :: Lens' ScoresGet (Maybe Text)
- sgPlayerId :: Lens' ScoresGet Text
- sgMaxResults :: Lens' ScoresGet (Maybe Int32)
REST Resource
type ScoresGetResource = "games" :> ("v1" :> ("players" :> (Capture "playerId" Text :> ("leaderboards" :> (Capture "leaderboardId" Text :> ("scores" :> (Capture "timeSpan" ScoresGetTimeSpan :> (QueryParam "includeRankType" ScoresGetIncludeRankType :> (QueryParam "language" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] PlayerLeaderboardScoreListResponse)))))))))))) Source #
A resource alias for games.scores.get
method which the
ScoresGet
request conforms to.
Creating a Request
Creates a value of ScoresGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Get high scores, and optionally ranks, in leaderboards for the currently authenticated player. For a specific time span, leaderboardId can be set to ALL to retrieve data for all leaderboards in a given time span. NOTE: You cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in the same request; only one parameter may be set to 'ALL'.
See: scoresGet
smart constructor.
Instances
Request Lenses
sgTimeSpan :: Lens' ScoresGet ScoresGetTimeSpan Source #
The time span for the scores and ranks you're requesting.
sgLeaderboardId :: Lens' ScoresGet Text Source #
The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all leaderboards for this application.
sgIncludeRankType :: Lens' ScoresGet (Maybe ScoresGetIncludeRankType) Source #
The types of ranks to return. If the parameter is omitted, no ranks will be returned.
sgLanguage :: Lens' ScoresGet (Maybe Text) Source #
The preferred language to use for strings returned by this method.