Copyright | (c) 2015-2016 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 advertiser if that the requesting advertiser/publisher has access to it. Only advertisers can look up publishers. Publishers can request information about themselves by omitting the publisherId query parameter.
See: Google Affiliate Network API Reference for gan.publishers.get
.
- type PublishersGetResource = "gan" :> ("v1beta1" :> (Capture "role" PublishersGetRole :> (Capture "roleId" Text :> ("publisher" :> (QueryParam "publisherId" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Publisher))))))
- publishersGet :: Text -> PublishersGetRole -> PublishersGet
- data PublishersGet
- pgRoleId :: Lens' PublishersGet Text
- pgRole :: Lens' PublishersGet PublishersGetRole
- pgPublisherId :: Lens' PublishersGet (Maybe Text)
REST Resource
type PublishersGetResource = "gan" :> ("v1beta1" :> (Capture "role" PublishersGetRole :> (Capture "roleId" Text :> ("publisher" :> (QueryParam "publisherId" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Publisher)))))) Source #
A resource alias for gan.publishers.get
method which the
PublishersGet
request conforms to.
Creating a Request
Creates a value of PublishersGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PublishersGet Source #
Retrieves data about a single advertiser if that the requesting advertiser/publisher has access to it. Only advertisers can look up publishers. Publishers can request information about themselves by omitting the publisherId query parameter.
See: publishersGet
smart constructor.
Request Lenses
pgRole :: Lens' PublishersGet PublishersGetRole Source #
The role of the requester. Valid values: 'advertisers' or 'publishers'.
pgPublisherId :: Lens' PublishersGet (Maybe Text) Source #
The ID of the publisher to look up. Optional.