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.Achievements.Increment

Contents

Description

Increments the steps of the achievement with the given ID for the currently authenticated player.

See: Google Play Game Services API Reference for games.achievements.increment.

Synopsis

REST Resource

type AchievementsIncrementResource = "games" :> ("v1" :> ("achievements" :> (Capture "achievementId" Text :> ("increment" :> (QueryParam "stepsToIncrement" (Textual Int32) :> (QueryParam "requestId" (Textual Int64) :> (QueryParam "alt" AltJSON :> Post `[JSON]` AchievementIncrementResponse))))))) Source

A resource alias for games.achievements.increment method which the AchievementsIncrement request conforms to.

Creating a Request

achievementsIncrement Source

Creates a value of AchievementsIncrement with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

aiRequestId :: Lens' AchievementsIncrement (Maybe Int64) Source

A randomly generated numeric ID for each request specified by the caller. This number is used at the server to ensure that the request is handled correctly across retries.

aiAchievementId :: Lens' AchievementsIncrement Text Source

The ID of the achievement used by this method.

aiStepsToIncrement :: Lens' AchievementsIncrement Int32 Source

The number of steps to increment.