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.Links.Get

Contents

Description

Retrieves data about a single link if the requesting advertiser/publisher has access to it. Advertisers can look up their own links. Publishers can look up visible links or links belonging to advertisers they are in a relationship with.

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

Synopsis

REST Resource

type LinksGetResource = "gan" :> ("v1beta1" :> (Capture "role" LinksGetRole :> (Capture "roleId" Text :> ("link" :> (Capture "linkId" (Textual Int64) :> (QueryParam "alt" AltJSON :> Get '[JSON] Link)))))) Source #

A resource alias for gan.links.get method which the LinksGet request conforms to.

Creating a Request

linksGet Source #

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

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

data LinksGet Source #

Retrieves data about a single link if the requesting advertiser/publisher has access to it. Advertisers can look up their own links. Publishers can look up visible links or links belonging to advertisers they are in a relationship with.

See: linksGet smart constructor.

Instances

Eq LinksGet Source # 
Data LinksGet Source # 

Methods

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

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

toConstr :: LinksGet -> Constr #

dataTypeOf :: LinksGet -> DataType #

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

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

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

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

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

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

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

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

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

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

Show LinksGet Source # 
Generic LinksGet Source # 

Associated Types

type Rep LinksGet :: * -> * #

Methods

from :: LinksGet -> Rep LinksGet x #

to :: Rep LinksGet x -> LinksGet #

GoogleRequest LinksGet Source # 

Associated Types

type Rs LinksGet :: * #

type Scopes LinksGet :: [Symbol] #

type Rep LinksGet Source # 
type Rep LinksGet = D1 (MetaData "LinksGet" "Network.Google.Resource.GAN.Links.Get" "gogol-affiliates-0.3.0-JnD32GtQi0c8cNZneHyDCL" False) (C1 (MetaCons "LinksGet'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lgRoleId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_lgRole") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 LinksGetRole)) (S1 (MetaSel (Just Symbol "_lgLinkId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int64))))))
type Scopes LinksGet Source # 
type Rs LinksGet Source # 

Request Lenses

lgRoleId :: Lens' LinksGet Text Source #

The ID of the requesting advertiser or publisher.

lgRole :: Lens' LinksGet LinksGetRole Source #

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

lgLinkId :: Lens' LinksGet Int64 Source #

The ID of the link to look up.