{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.AdSenseHost.AssociationSessions.Verify
(
AssociationSessionsVerifyResource
, associationSessionsVerify
, AssociationSessionsVerify
, asvToken
) where
import Network.Google.AdSenseHost.Types
import Network.Google.Prelude
type AssociationSessionsVerifyResource =
"adsensehost" :>
"v4.1" :>
"associationsessions" :>
"verify" :>
QueryParam "token" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] AssociationSession
newtype AssociationSessionsVerify = AssociationSessionsVerify'
{ _asvToken :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
associationSessionsVerify
:: Text
-> AssociationSessionsVerify
associationSessionsVerify pAsvToken_ =
AssociationSessionsVerify'
{ _asvToken = pAsvToken_
}
asvToken :: Lens' AssociationSessionsVerify Text
asvToken = lens _asvToken (\ s a -> s{_asvToken = a})
instance GoogleRequest AssociationSessionsVerify
where
type Rs AssociationSessionsVerify =
AssociationSession
type Scopes AssociationSessionsVerify =
'["https://www.googleapis.com/auth/adsensehost"]
requestClient AssociationSessionsVerify'{..}
= go (Just _asvToken) (Just AltJSON)
adSenseHostService
where go
= buildClient
(Proxy :: Proxy AssociationSessionsVerifyResource)
mempty