gogol-games-0.3.0: Google Play Game Services SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Games.Players.Get

Contents

Description

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

REST Resource

type PlayersGetResource = "games" :> ("v1" :> ("players" :> (Capture "playerId" Text :> (QueryParam "consistencyToken" (Textual Int64) :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Player)))))) #

A resource alias for games.players.get method which the PlayersGet request conforms to.

Creating a Request

playersGet #

Arguments

:: Text

pgPlayerId

-> 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 #

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

Eq PlayersGet # 
Data PlayersGet # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PlayersGet -> c PlayersGet #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PlayersGet #

toConstr :: PlayersGet -> Constr #

dataTypeOf :: PlayersGet -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PlayersGet) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PlayersGet) #

gmapT :: (forall b. Data b => b -> b) -> PlayersGet -> PlayersGet #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PlayersGet -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PlayersGet -> r #

gmapQ :: (forall d. Data d => d -> u) -> PlayersGet -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PlayersGet -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PlayersGet -> m PlayersGet #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PlayersGet -> m PlayersGet #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PlayersGet -> m PlayersGet #

Show PlayersGet # 
Generic PlayersGet # 

Associated Types

type Rep PlayersGet :: * -> * #

GoogleRequest PlayersGet # 

Associated Types

type Rs PlayersGet :: * #

type Scopes PlayersGet :: [Symbol] #

type Rep PlayersGet # 
type Rep PlayersGet = D1 (MetaData "PlayersGet" "Network.Google.Resource.Games.Players.Get" "gogol-games-0.3.0-GNXQYUUBxvWAqjK1jE2zeK" False) (C1 (MetaCons "PlayersGet'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_pgConsistencyToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) ((:*:) (S1 (MetaSel (Just Symbol "_pgLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_pgPlayerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes PlayersGet # 
type Scopes PlayersGet = (:) Symbol "https://www.googleapis.com/auth/games" ((:) Symbol "https://www.googleapis.com/auth/plus.login" ([] Symbol))
type Rs PlayersGet # 

Request Lenses

pgConsistencyToken :: Lens' PlayersGet (Maybe Int64) #

The last-seen mutation timestamp.

pgLanguage :: Lens' PlayersGet (Maybe Text) #

The preferred language to use for strings returned by this method.

pgPlayerId :: Lens' PlayersGet Text #

A player ID. A value of me may be used in place of the authenticated player's ID.