Copyright | (c) 2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Inserts a new link.
See: Google Affiliate Network API Reference for gan.links.insert
.
- type LinksInsertResource = "gan" :> ("v1beta1" :> (Capture "role" LinksInsertRole :> (Capture "roleId" Text :> ("link" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Link :> Post `[JSON]` Link))))))
- linksInsert :: Link -> Text -> LinksInsertRole -> LinksInsert
- data LinksInsert
- liPayload :: Lens' LinksInsert Link
- liRoleId :: Lens' LinksInsert Text
- liRole :: Lens' LinksInsert LinksInsertRole
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
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:
data LinksInsert Source
Inserts a new link.
See: linksInsert
smart constructor.
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'.