gogol-games-0.0.1: Google Play Game Services SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Games.Scores.Submit

Contents

Description

Submits a score to the specified leaderboard.

See: Google Play Game Services API Reference for games.scores.submit.

Synopsis

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

scoresSubmit Source

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:

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.