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 |
Create an association session for initiating an association with an AdSense user.
See: AdSense Host API Reference for adsensehost.associationsessions.start
.
Synopsis
- type AssociationSessionsStartResource = "adsensehost" :> ("v4.1" :> ("associationsessions" :> ("start" :> (QueryParams "productCode" AssociationSessionsStartProductCode :> (QueryParam "websiteUrl" Text :> (QueryParam "websiteLocale" Text :> (QueryParam "userLocale" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] AssociationSession))))))))
- associationSessionsStart :: Text -> [AssociationSessionsStartProductCode] -> AssociationSessionsStart
- data AssociationSessionsStart
- assWebsiteLocale :: Lens' AssociationSessionsStart (Maybe Text)
- assUserLocale :: Lens' AssociationSessionsStart (Maybe Text)
- assWebsiteURL :: Lens' AssociationSessionsStart Text
- assProductCode :: Lens' AssociationSessionsStart [AssociationSessionsStartProductCode]
REST Resource
type AssociationSessionsStartResource = "adsensehost" :> ("v4.1" :> ("associationsessions" :> ("start" :> (QueryParams "productCode" AssociationSessionsStartProductCode :> (QueryParam "websiteUrl" Text :> (QueryParam "websiteLocale" Text :> (QueryParam "userLocale" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] AssociationSession)))))))) Source #
A resource alias for adsensehost.associationsessions.start
method which the
AssociationSessionsStart
request conforms to.
Creating a Request
associationSessionsStart Source #
Creates a value of AssociationSessionsStart
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AssociationSessionsStart Source #
Create an association session for initiating an association with an AdSense user.
See: associationSessionsStart
smart constructor.
Instances
Request Lenses
assWebsiteLocale :: Lens' AssociationSessionsStart (Maybe Text) Source #
The locale of the user's hosted website.
assUserLocale :: Lens' AssociationSessionsStart (Maybe Text) Source #
The preferred locale of the user.
assWebsiteURL :: Lens' AssociationSessionsStart Text Source #
The URL of the user's hosted website.
assProductCode :: Lens' AssociationSessionsStart [AssociationSessionsStartProductCode] Source #
Products to associate with the user.