{-# 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.AdSense.Payments.List
(
PaymentsListResource
, paymentsList
, PaymentsList
) where
import Network.Google.AdSense.Types
import Network.Google.Prelude
type PaymentsListResource =
"adsense" :>
"v1.4" :>
"payments" :>
QueryParam "alt" AltJSON :> Get '[JSON] Payments
data PaymentsList =
PaymentsList'
deriving (Eq,Show,Data,Typeable,Generic)
paymentsList
:: PaymentsList
paymentsList = PaymentsList'
instance GoogleRequest PaymentsList where
type Rs PaymentsList = Payments
type Scopes PaymentsList =
'["https://www.googleapis.com/auth/adsense",
"https://www.googleapis.com/auth/adsense.readonly"]
requestClient PaymentsList'{}
= go (Just AltJSON) adSenseService
where go
= buildClient (Proxy :: Proxy PaymentsListResource)
mempty