{-# 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.Content.Accounts.AuthInfo
(
AccountsAuthInfoResource
, accountsAuthInfo
, AccountsAuthInfo
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type AccountsAuthInfoResource =
"content" :>
"v2.1" :>
"accounts" :>
"authinfo" :>
QueryParam "alt" AltJSON :>
Get '[JSON] AccountsAuthInfoResponse
data AccountsAuthInfo =
AccountsAuthInfo'
deriving (Eq,Show,Data,Typeable,Generic)
accountsAuthInfo
:: AccountsAuthInfo
accountsAuthInfo = AccountsAuthInfo'
instance GoogleRequest AccountsAuthInfo where
type Rs AccountsAuthInfo = AccountsAuthInfoResponse
type Scopes AccountsAuthInfo =
'["https://www.googleapis.com/auth/content"]
requestClient AccountsAuthInfo'{}
= go (Just AltJSON) shoppingContentService
where go
= buildClient
(Proxy :: Proxy AccountsAuthInfoResource)
mempty