| 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 |
Network.Google.Resource.Games.Achievements.Unlock
Description
Unlocks this achievement for the currently authenticated player.
See: Google Play Game Services API Reference for games.achievements.unlock.
Synopsis
- type AchievementsUnlockResource = "games" :> ("v1" :> ("achievements" :> (Capture "achievementId" Text :> ("unlock" :> (QueryParam "builtinGameId" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] AchievementUnlockResponse))))))
- achievementsUnlock :: Text -> AchievementsUnlock
- data AchievementsUnlock
- auBuiltinGameId :: Lens' AchievementsUnlock (Maybe Text)
- auAchievementId :: Lens' AchievementsUnlock Text
REST Resource
type AchievementsUnlockResource = "games" :> ("v1" :> ("achievements" :> (Capture "achievementId" Text :> ("unlock" :> (QueryParam "builtinGameId" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] AchievementUnlockResponse)))))) Source #
A resource alias for games.achievements.unlock method which the
AchievementsUnlock request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> AchievementsUnlock |
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.
Instances
Request Lenses
auBuiltinGameId :: Lens' AchievementsUnlock (Maybe Text) Source #
Override used only by built-in games in Play Games application.
auAchievementId :: Lens' AchievementsUnlock Text Source #
The ID of the achievement used by this method.