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 |
Unlocks this achievement for the currently authenticated player.
See: Google Play Game Services API Reference for games.achievements.unlock
.
- type AchievementsUnlockResource = "games" :> ("v1" :> ("achievements" :> (Capture "achievementId" Text :> ("unlock" :> (QueryParam "consistencyToken" (Textual Int64) :> (QueryParam "alt" AltJSON :> Post '[JSON] AchievementUnlockResponse))))))
- achievementsUnlock :: Text -> AchievementsUnlock
- data AchievementsUnlock
- auAchievementId :: Lens' AchievementsUnlock Text
- auConsistencyToken :: Lens' AchievementsUnlock (Maybe Int64)
REST Resource
type AchievementsUnlockResource = "games" :> ("v1" :> ("achievements" :> (Capture "achievementId" Text :> ("unlock" :> (QueryParam "consistencyToken" (Textual Int64) :> (QueryParam "alt" AltJSON :> Post '[JSON] AchievementUnlockResponse)))))) Source #
A resource alias for games.achievements.unlock
method which the
AchievementsUnlock
request conforms to.
Creating a Request
Creates a value of AchievementsUnlock
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AchievementsUnlock Source #
Unlocks this achievement for the currently authenticated player.
See: achievementsUnlock
smart constructor.
Request Lenses
auAchievementId :: Lens' AchievementsUnlock Text Source #
The ID of the achievement used by this method.
auConsistencyToken :: Lens' AchievementsUnlock (Maybe Int64) Source #
The last-seen mutation timestamp.