gogol-affiliates-0.3.0: Google Affiliate Network 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.GAN.Publishers.Get

Contents

Description

Retrieves data about a single advertiser if that the requesting advertiser/publisher has access to it. Only advertisers can look up publishers. Publishers can request information about themselves by omitting the publisherId query parameter.

See: Google Affiliate Network API Reference for gan.publishers.get.

Synopsis

REST Resource

type PublishersGetResource = "gan" :> ("v1beta1" :> (Capture "role" PublishersGetRole :> (Capture "roleId" Text :> ("publisher" :> (QueryParam "publisherId" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Publisher)))))) Source #

A resource alias for gan.publishers.get method which the PublishersGet request conforms to.

Creating a Request

publishersGet Source #

Creates a value of PublishersGet with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data PublishersGet Source #

Retrieves data about a single advertiser if that the requesting advertiser/publisher has access to it. Only advertisers can look up publishers. Publishers can request information about themselves by omitting the publisherId query parameter.

See: publishersGet smart constructor.

Instances

Eq PublishersGet Source # 
Data PublishersGet Source # 

Methods

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

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

toConstr :: PublishersGet -> Constr #

dataTypeOf :: PublishersGet -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PublishersGet Source # 
Generic PublishersGet Source # 

Associated Types

type Rep PublishersGet :: * -> * #

GoogleRequest PublishersGet Source # 

Associated Types

type Rs PublishersGet :: * #

type Scopes PublishersGet :: [Symbol] #

type Rep PublishersGet Source # 
type Rep PublishersGet = D1 (MetaData "PublishersGet" "Network.Google.Resource.GAN.Publishers.Get" "gogol-affiliates-0.3.0-JnD32GtQi0c8cNZneHyDCL" False) (C1 (MetaCons "PublishersGet'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_pgRoleId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_pgRole") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 PublishersGetRole)) (S1 (MetaSel (Just Symbol "_pgPublisherId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes PublishersGet Source # 
type Rs PublishersGet Source # 

Request Lenses

pgRoleId :: Lens' PublishersGet Text Source #

The ID of the requesting advertiser or publisher.

pgRole :: Lens' PublishersGet PublishersGetRole Source #

The role of the requester. Valid values: 'advertisers' or 'publishers'.

pgPublisherId :: Lens' PublishersGet (Maybe Text) Source #

The ID of the publisher to look up. Optional.