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 |
Return a book to the library. Returns the book if it is returned to the library successfully. Returns error if the book does not belong to the library or the users didn't borrow before.
See: Library Agent API Reference for libraryagent.shelves.books.return
.
Synopsis
- type ShelvesBooksReturnResource = "v1" :> (CaptureMode "name" "return" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] GoogleExampleLibraryagentV1Book)))))))
- shelvesBooksReturn :: Text -> ShelvesBooksReturn
- data ShelvesBooksReturn
- sbrXgafv :: Lens' ShelvesBooksReturn (Maybe Xgafv)
- sbrUploadProtocol :: Lens' ShelvesBooksReturn (Maybe Text)
- sbrAccessToken :: Lens' ShelvesBooksReturn (Maybe Text)
- sbrUploadType :: Lens' ShelvesBooksReturn (Maybe Text)
- sbrName :: Lens' ShelvesBooksReturn Text
- sbrCallback :: Lens' ShelvesBooksReturn (Maybe Text)
REST Resource
type ShelvesBooksReturnResource = "v1" :> (CaptureMode "name" "return" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] GoogleExampleLibraryagentV1Book))))))) Source #
A resource alias for libraryagent.shelves.books.return
method which the
ShelvesBooksReturn
request conforms to.
Creating a Request
Creates a value of ShelvesBooksReturn
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ShelvesBooksReturn Source #
Return a book to the library. Returns the book if it is returned to the library successfully. Returns error if the book does not belong to the library or the users didn't borrow before.
See: shelvesBooksReturn
smart constructor.
Instances
Request Lenses
sbrUploadProtocol :: Lens' ShelvesBooksReturn (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
sbrAccessToken :: Lens' ShelvesBooksReturn (Maybe Text) Source #
OAuth access token.
sbrUploadType :: Lens' ShelvesBooksReturn (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
sbrCallback :: Lens' ShelvesBooksReturn (Maybe Text) Source #
JSONP