{-# 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.Books.MyConfig.GetUserSettings
(
MyConfigGetUserSettingsResource
, myConfigGetUserSettings
, MyConfigGetUserSettings
) where
import Network.Google.Books.Types
import Network.Google.Prelude
type MyConfigGetUserSettingsResource =
"books" :>
"v1" :>
"myconfig" :>
"getUserSettings" :>
QueryParam "alt" AltJSON :> Get '[JSON] UserSettings
data MyConfigGetUserSettings =
MyConfigGetUserSettings'
deriving (Eq,Show,Data,Typeable,Generic)
myConfigGetUserSettings
:: MyConfigGetUserSettings
myConfigGetUserSettings = MyConfigGetUserSettings'
instance GoogleRequest MyConfigGetUserSettings where
type Rs MyConfigGetUserSettings = UserSettings
type Scopes MyConfigGetUserSettings =
'["https://www.googleapis.com/auth/books"]
requestClient MyConfigGetUserSettings'{}
= go (Just AltJSON) booksService
where go
= buildClient
(Proxy :: Proxy MyConfigGetUserSettingsResource)
mempty