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 |
Request concurrent and download access restrictions.
See: Books API Reference for books.myconfig.requestAccess
.
Synopsis
- type MyConfigRequestAccessResource = "books" :> ("v1" :> ("myconfig" :> ("requestAccess" :> (QueryParam "source" Text :> (QueryParam "volumeId" Text :> (QueryParam "nonce" Text :> (QueryParam "cpksver" Text :> (QueryParam "locale" Text :> (QueryParam "licenseTypes" MyConfigRequestAccessLicenseTypes :> (QueryParam "alt" AltJSON :> Post '[JSON] RequestAccess))))))))))
- myConfigRequestAccess :: Text -> Text -> Text -> Text -> MyConfigRequestAccess
- data MyConfigRequestAccess
- mcraCpksver :: Lens' MyConfigRequestAccess Text
- mcraLocale :: Lens' MyConfigRequestAccess (Maybe Text)
- mcraLicenseTypes :: Lens' MyConfigRequestAccess (Maybe MyConfigRequestAccessLicenseTypes)
- mcraVolumeId :: Lens' MyConfigRequestAccess Text
- mcraSource :: Lens' MyConfigRequestAccess Text
- mcraNonce :: Lens' MyConfigRequestAccess Text
REST Resource
type MyConfigRequestAccessResource = "books" :> ("v1" :> ("myconfig" :> ("requestAccess" :> (QueryParam "source" Text :> (QueryParam "volumeId" Text :> (QueryParam "nonce" Text :> (QueryParam "cpksver" Text :> (QueryParam "locale" Text :> (QueryParam "licenseTypes" MyConfigRequestAccessLicenseTypes :> (QueryParam "alt" AltJSON :> Post '[JSON] RequestAccess)))))))))) Source #
A resource alias for books.myconfig.requestAccess
method which the
MyConfigRequestAccess
request conforms to.
Creating a Request
myConfigRequestAccess Source #
Creates a value of MyConfigRequestAccess
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MyConfigRequestAccess Source #
Request concurrent and download access restrictions.
See: myConfigRequestAccess
smart constructor.
Instances
Request Lenses
mcraCpksver :: Lens' MyConfigRequestAccess Text Source #
The device/version ID from which to request the restrictions.
mcraLocale :: Lens' MyConfigRequestAccess (Maybe Text) Source #
ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
mcraLicenseTypes :: Lens' MyConfigRequestAccess (Maybe MyConfigRequestAccessLicenseTypes) Source #
The type of access license to request. If not specified, the default is BOTH.
mcraVolumeId :: Lens' MyConfigRequestAccess Text Source #
The volume to request concurrent/download restrictions for.
mcraSource :: Lens' MyConfigRequestAccess Text Source #
String to identify the originator of this request.