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 |
Sets the steps for the currently authenticated player towards unlocking an achievement. If the steps parameter is less than the current number of steps that the player already gained for the achievement, the achievement is not modified.
See: Google Play Game Services API Reference for games.achievements.setStepsAtLeast
.
Synopsis
- type AchievementsSetStepsAtLeastResource = "games" :> ("v1" :> ("achievements" :> (Capture "achievementId" Text :> ("setStepsAtLeast" :> (QueryParam "steps" (Textual Int32) :> (QueryParam "alt" AltJSON :> Post '[JSON] AchievementSetStepsAtLeastResponse))))))
- achievementsSetStepsAtLeast :: Text -> Int32 -> AchievementsSetStepsAtLeast
- data AchievementsSetStepsAtLeast
- assalAchievementId :: Lens' AchievementsSetStepsAtLeast Text
- assalSteps :: Lens' AchievementsSetStepsAtLeast Int32
REST Resource
type AchievementsSetStepsAtLeastResource = "games" :> ("v1" :> ("achievements" :> (Capture "achievementId" Text :> ("setStepsAtLeast" :> (QueryParam "steps" (Textual Int32) :> (QueryParam "alt" AltJSON :> Post '[JSON] AchievementSetStepsAtLeastResponse)))))) Source #
A resource alias for games.achievements.setStepsAtLeast
method which the
AchievementsSetStepsAtLeast
request conforms to.
Creating a Request
achievementsSetStepsAtLeast Source #
Creates a value of AchievementsSetStepsAtLeast
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AchievementsSetStepsAtLeast Source #
Sets the steps for the currently authenticated player towards unlocking an achievement. If the steps parameter is less than the current number of steps that the player already gained for the achievement, the achievement is not modified.
See: achievementsSetStepsAtLeast
smart constructor.
Instances
Request Lenses
assalAchievementId :: Lens' AchievementsSetStepsAtLeast Text Source #
The ID of the achievement used by this method.
assalSteps :: Lens' AchievementsSetStepsAtLeast Int32 Source #
The minimum value to set the steps to.