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 |
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
.
- type LinksGetResource = "gan" :> ("v1beta1" :> (Capture "role" LinksGetRole :> (Capture "roleId" Text :> ("link" :> (Capture "linkId" (Textual Int64) :> (QueryParam "alt" AltJSON :> Get `[JSON]` Link))))))
- linksGet :: Text -> LinksGetRole -> Int64 -> LinksGet
- data LinksGet
- lgRoleId :: Lens' LinksGet Text
- lgRole :: Lens' LinksGet LinksGetRole
- lgLinkId :: Lens' LinksGet Int64
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
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
lgRole :: Lens' LinksGet LinksGetRole Source
The role of the requester. Valid values: 'advertisers' or 'publishers'.