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

Contents

Description

Inserts a new link.

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

Synopsis

REST Resource

type LinksInsertResource = "gan" :> ("v1beta1" :> (Capture "role" LinksInsertRole :> (Capture "roleId" Text :> ("link" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Link :> Post `[JSON]` Link)))))) Source

A resource alias for gan.links.insert method which the LinksInsert request conforms to.

Creating a Request

linksInsert Source

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

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

Request Lenses

liPayload :: Lens' LinksInsert Link Source

Multipart request metadata.

liRoleId :: Lens' LinksInsert Text Source

The ID of the requesting advertiser or publisher.

liRole :: Lens' LinksInsert LinksInsertRole Source

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