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 |
Submits a score to the specified leaderboard.
See: Google Play Game Services API Reference for games.scores.submit
.
Synopsis
- type ScoresSubmitResource = "games" :> ("v1" :> ("leaderboards" :> (Capture "leaderboardId" Text :> ("scores" :> (QueryParam "score" (Textual Int64) :> (QueryParam "scoreTag" Text :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] PlayerScoreResponse))))))))
- scoresSubmit :: Int64 -> Text -> ScoresSubmit
- data ScoresSubmit
- ssScoreTag :: Lens' ScoresSubmit (Maybe Text)
- ssScore :: Lens' ScoresSubmit Int64
- ssLeaderboardId :: Lens' ScoresSubmit Text
- ssLanguage :: Lens' ScoresSubmit (Maybe Text)
REST Resource
type ScoresSubmitResource = "games" :> ("v1" :> ("leaderboards" :> (Capture "leaderboardId" Text :> ("scores" :> (QueryParam "score" (Textual Int64) :> (QueryParam "scoreTag" Text :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] PlayerScoreResponse)))))))) Source #
A resource alias for games.scores.submit
method which the
ScoresSubmit
request conforms to.
Creating a Request
Creates a value of ScoresSubmit
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ScoresSubmit Source #
Submits a score to the specified leaderboard.
See: scoresSubmit
smart constructor.
Instances
Request Lenses
ssScoreTag :: Lens' ScoresSubmit (Maybe Text) Source #
Additional information about the score you're submitting. Values must contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986.
ssScore :: Lens' ScoresSubmit Int64 Source #
The score you're submitting. The submitted score is ignored if it is worse than a previously submitted score, where worse depends on the leaderboard sort order. The meaning of the score value depends on the leaderboard format type. For fixed-point, the score represents the raw value. For time, the score represents elapsed time in milliseconds. For currency, the score represents a value in micro units.
ssLeaderboardId :: Lens' ScoresSubmit Text Source #
The ID of the leaderboard.
ssLanguage :: Lens' ScoresSubmit (Maybe Text) Source #
The preferred language to use for strings returned by this method.