| Copyright | (c) 2015-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Google.Resource.Books.MyLibrary.Bookshelves.AddVolume
Description
Adds a volume to a bookshelf.
See: Books API Reference for books.mylibrary.bookshelves.addVolume.
Synopsis
- type MyLibraryBookshelvesAddVolumeResource = "books" :> ("v1" :> ("mylibrary" :> ("bookshelves" :> (Capture "shelf" Text :> ("addVolume" :> (QueryParam "volumeId" Text :> (QueryParam "reason" MyLibraryBookshelvesAddVolumeReason :> (QueryParam "source" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] ())))))))))
- myLibraryBookshelvesAddVolume :: Text -> Text -> MyLibraryBookshelvesAddVolume
- data MyLibraryBookshelvesAddVolume
- mlbavReason :: Lens' MyLibraryBookshelvesAddVolume (Maybe MyLibraryBookshelvesAddVolumeReason)
- mlbavShelf :: Lens' MyLibraryBookshelvesAddVolume Text
- mlbavVolumeId :: Lens' MyLibraryBookshelvesAddVolume Text
- mlbavSource :: Lens' MyLibraryBookshelvesAddVolume (Maybe Text)
REST Resource
type MyLibraryBookshelvesAddVolumeResource = "books" :> ("v1" :> ("mylibrary" :> ("bookshelves" :> (Capture "shelf" Text :> ("addVolume" :> (QueryParam "volumeId" Text :> (QueryParam "reason" MyLibraryBookshelvesAddVolumeReason :> (QueryParam "source" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] ()))))))))) Source #
A resource alias for books.mylibrary.bookshelves.addVolume method which the
MyLibraryBookshelvesAddVolume request conforms to.
Creating a Request
myLibraryBookshelvesAddVolume Source #
Arguments
| :: Text | |
| -> Text | |
| -> MyLibraryBookshelvesAddVolume |
Creates a value of MyLibraryBookshelvesAddVolume with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MyLibraryBookshelvesAddVolume Source #
Adds a volume to a bookshelf.
See: myLibraryBookshelvesAddVolume smart constructor.
Instances
Request Lenses
mlbavReason :: Lens' MyLibraryBookshelvesAddVolume (Maybe MyLibraryBookshelvesAddVolumeReason) Source #
The reason for which the book is added to the library.
mlbavShelf :: Lens' MyLibraryBookshelvesAddVolume Text Source #
ID of bookshelf to which to add a volume.
mlbavVolumeId :: Lens' MyLibraryBookshelvesAddVolume Text Source #
ID of volume to add.
mlbavSource :: Lens' MyLibraryBookshelvesAddVolume (Maybe Text) Source #
String to identify the originator of this request.