gogol-games-0.1.1: 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)))))) Source #

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

Creating a Request

playersGet Source #

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

Eq PlayersGet Source # 
Data PlayersGet Source # 

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 Source # 
Generic PlayersGet Source # 

Associated Types

type Rep PlayersGet :: * -> * #

GoogleRequest PlayersGet Source # 

Associated Types

type Rs PlayersGet :: * #

type Scopes PlayersGet :: [Symbol] #

type Rep PlayersGet Source # 
type Rep PlayersGet = D1 (MetaData "PlayersGet" "Network.Google.Resource.Games.Players.Get" "gogol-games-0.1.1-51s1M5pkrSC2hZZaHOnQh5" 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 Source # 
type Scopes PlayersGet = (:) Symbol "https://www.googleapis.com/auth/games" ((:) Symbol "https://www.googleapis.com/auth/plus.login" ([] Symbol))
type Rs PlayersGet Source # 

Request Lenses

pgConsistencyToken :: Lens' PlayersGet (Maybe Int64) Source #

The last-seen mutation timestamp.

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.