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 |
Retrieves the Player resource with the given ID. To retrieve the player for the currently authenticated user, set playerId to me.
See: Google Play Game Services API Reference for games.players.get
.
Synopsis
- type PlayersGetResource = "games" :> ("v1" :> ("players" :> (Capture "playerId" Text :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Player)))))
- playersGet :: Text -> PlayersGet
- data PlayersGet
- pgLanguage :: Lens' PlayersGet (Maybe Text)
- pgPlayerId :: Lens' PlayersGet Text
REST Resource
type PlayersGetResource = "games" :> ("v1" :> ("players" :> (Capture "playerId" Text :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Player))))) Source #
A resource alias for games.players.get
method which the
PlayersGet
request conforms to.
Creating a Request
:: Text | |
-> PlayersGet |
Creates a value of PlayersGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PlayersGet Source #
Retrieves the Player resource with the given ID. To retrieve the player for the currently authenticated user, set playerId to me.
See: playersGet
smart constructor.
Instances
Request Lenses
pgLanguage :: Lens' PlayersGet (Maybe Text) Source #
The preferred language to use for strings returned by this method.
pgPlayerId :: Lens' PlayersGet Text Source #
A player ID. A value of me may be used in place of the authenticated player's ID.