gogol-affiliates-0.0.1: Google Affiliate Network SDK.

Copyright(c) 2015 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.

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.