{-# 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.MyLibrary.Bookshelves.List
(
MyLibraryBookshelvesListResource
, myLibraryBookshelvesList
, MyLibraryBookshelvesList
, mlblSource
) where
import Network.Google.Books.Types
import Network.Google.Prelude
type MyLibraryBookshelvesListResource =
"books" :>
"v1" :>
"mylibrary" :>
"bookshelves" :>
QueryParam "source" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Bookshelves
newtype MyLibraryBookshelvesList = MyLibraryBookshelvesList'
{ _mlblSource :: Maybe Text
} deriving (Eq,Show,Data,Typeable,Generic)
myLibraryBookshelvesList
:: MyLibraryBookshelvesList
myLibraryBookshelvesList =
MyLibraryBookshelvesList'
{ _mlblSource = Nothing
}
mlblSource :: Lens' MyLibraryBookshelvesList (Maybe Text)
mlblSource
= lens _mlblSource (\ s a -> s{_mlblSource = a})
instance GoogleRequest MyLibraryBookshelvesList where
type Rs MyLibraryBookshelvesList = Bookshelves
type Scopes MyLibraryBookshelvesList =
'["https://www.googleapis.com/auth/books"]
requestClient MyLibraryBookshelvesList'{..}
= go _mlblSource (Just AltJSON) booksService
where go
= buildClient
(Proxy :: Proxy MyLibraryBookshelvesListResource)
mempty