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 |
Sets my reading position information for a volume.
See: Books API Reference for books.mylibrary.readingpositions.setPosition
.
Synopsis
- type MyLibraryReadingPositionsSetPositionResource = "books" :> ("v1" :> ("mylibrary" :> ("readingpositions" :> (Capture "volumeId" Text :> ("setPosition" :> (QueryParam "timestamp" Text :> (QueryParam "position" Text :> (QueryParam "deviceCookie" Text :> (QueryParam "contentVersion" Text :> (QueryParam "action" MyLibraryReadingPositionsSetPositionAction :> (QueryParam "source" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] ()))))))))))))
- myLibraryReadingPositionsSetPosition :: Text -> Text -> Text -> MyLibraryReadingPositionsSetPosition
- data MyLibraryReadingPositionsSetPosition
- mlrpspDeviceCookie :: Lens' MyLibraryReadingPositionsSetPosition (Maybe Text)
- mlrpspContentVersion :: Lens' MyLibraryReadingPositionsSetPosition (Maybe Text)
- mlrpspAction :: Lens' MyLibraryReadingPositionsSetPosition (Maybe MyLibraryReadingPositionsSetPositionAction)
- mlrpspVolumeId :: Lens' MyLibraryReadingPositionsSetPosition Text
- mlrpspSource :: Lens' MyLibraryReadingPositionsSetPosition (Maybe Text)
- mlrpspTimestamp :: Lens' MyLibraryReadingPositionsSetPosition Text
- mlrpspPosition :: Lens' MyLibraryReadingPositionsSetPosition Text
REST Resource
type MyLibraryReadingPositionsSetPositionResource = "books" :> ("v1" :> ("mylibrary" :> ("readingpositions" :> (Capture "volumeId" Text :> ("setPosition" :> (QueryParam "timestamp" Text :> (QueryParam "position" Text :> (QueryParam "deviceCookie" Text :> (QueryParam "contentVersion" Text :> (QueryParam "action" MyLibraryReadingPositionsSetPositionAction :> (QueryParam "source" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] ())))))))))))) Source #
A resource alias for books.mylibrary.readingpositions.setPosition
method which the
MyLibraryReadingPositionsSetPosition
request conforms to.
Creating a Request
myLibraryReadingPositionsSetPosition Source #
:: Text | |
-> Text | |
-> Text | |
-> MyLibraryReadingPositionsSetPosition |
Creates a value of MyLibraryReadingPositionsSetPosition
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MyLibraryReadingPositionsSetPosition Source #
Sets my reading position information for a volume.
See: myLibraryReadingPositionsSetPosition
smart constructor.
Instances
Request Lenses
mlrpspDeviceCookie :: Lens' MyLibraryReadingPositionsSetPosition (Maybe Text) Source #
Random persistent device cookie optional on set position.
mlrpspContentVersion :: Lens' MyLibraryReadingPositionsSetPosition (Maybe Text) Source #
Volume content version for which this reading position applies.
mlrpspAction :: Lens' MyLibraryReadingPositionsSetPosition (Maybe MyLibraryReadingPositionsSetPositionAction) Source #
Action that caused this reading position to be set.
mlrpspVolumeId :: Lens' MyLibraryReadingPositionsSetPosition Text Source #
ID of volume for which to update the reading position.
mlrpspSource :: Lens' MyLibraryReadingPositionsSetPosition (Maybe Text) Source #
String to identify the originator of this request.
mlrpspTimestamp :: Lens' MyLibraryReadingPositionsSetPosition Text Source #
RFC 3339 UTC format timestamp associated with this reading position.
mlrpspPosition :: Lens' MyLibraryReadingPositionsSetPosition Text Source #
Position string for the new volume reading position.