{-# 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.Familysharing.GetFamilyInfo
(
FamilysharingGetFamilyInfoResource
, familysharingGetFamilyInfo
, FamilysharingGetFamilyInfo
, fgfiSource
) where
import Network.Google.Books.Types
import Network.Google.Prelude
type FamilysharingGetFamilyInfoResource =
"books" :>
"v1" :>
"familysharing" :>
"getFamilyInfo" :>
QueryParam "source" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] FamilyInfo
newtype FamilysharingGetFamilyInfo = FamilysharingGetFamilyInfo'
{ _fgfiSource :: Maybe Text
} deriving (Eq,Show,Data,Typeable,Generic)
familysharingGetFamilyInfo
:: FamilysharingGetFamilyInfo
familysharingGetFamilyInfo =
FamilysharingGetFamilyInfo'
{ _fgfiSource = Nothing
}
fgfiSource :: Lens' FamilysharingGetFamilyInfo (Maybe Text)
fgfiSource
= lens _fgfiSource (\ s a -> s{_fgfiSource = a})
instance GoogleRequest FamilysharingGetFamilyInfo
where
type Rs FamilysharingGetFamilyInfo = FamilyInfo
type Scopes FamilysharingGetFamilyInfo =
'["https://www.googleapis.com/auth/books"]
requestClient FamilysharingGetFamilyInfo'{..}
= go _fgfiSource (Just AltJSON) booksService
where go
= buildClient
(Proxy :: Proxy FamilysharingGetFamilyInfoResource)
mempty