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 |
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
.
- type AchievementsIncrementResource = "games" :> ("v1" :> ("achievements" :> (Capture "achievementId" Text :> ("increment" :> (QueryParam "stepsToIncrement" (Textual Int32) :> (QueryParam "requestId" (Textual Int64) :> (QueryParam "alt" AltJSON :> Post `[JSON]` AchievementIncrementResponse)))))))
- achievementsIncrement :: Text -> Int32 -> AchievementsIncrement
- data AchievementsIncrement
- aiRequestId :: Lens' AchievementsIncrement (Maybe Int64)
- aiAchievementId :: Lens' AchievementsIncrement Text
- aiStepsToIncrement :: Lens' AchievementsIncrement Int32
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
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:
data AchievementsIncrement Source
Increments the steps of the achievement with the given ID for the currently authenticated player.
See: achievementsIncrement
smart constructor.
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.