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 list of associated books.
See: Books API Reference for books.volumes.associated.list
.
Synopsis
- type VolumesAssociatedListResource = "books" :> ("v1" :> ("volumes" :> (Capture "volumeId" Text :> ("associated" :> (QueryParam "locale" Text :> (QueryParam "maxAllowedMaturityRating" VolumesAssociatedListMaxAllowedMaturityRating :> (QueryParam "source" Text :> (QueryParam "association" VolumesAssociatedListAssociation :> (QueryParam "alt" AltJSON :> Get '[JSON] Volumes)))))))))
- volumesAssociatedList :: Text -> VolumesAssociatedList
- data VolumesAssociatedList
- valLocale :: Lens' VolumesAssociatedList (Maybe Text)
- valMaxAllowedMaturityRating :: Lens' VolumesAssociatedList (Maybe VolumesAssociatedListMaxAllowedMaturityRating)
- valVolumeId :: Lens' VolumesAssociatedList Text
- valSource :: Lens' VolumesAssociatedList (Maybe Text)
- valAssociation :: Lens' VolumesAssociatedList (Maybe VolumesAssociatedListAssociation)
REST Resource
type VolumesAssociatedListResource = "books" :> ("v1" :> ("volumes" :> (Capture "volumeId" Text :> ("associated" :> (QueryParam "locale" Text :> (QueryParam "maxAllowedMaturityRating" VolumesAssociatedListMaxAllowedMaturityRating :> (QueryParam "source" Text :> (QueryParam "association" VolumesAssociatedListAssociation :> (QueryParam "alt" AltJSON :> Get '[JSON] Volumes))))))))) Source #
A resource alias for books.volumes.associated.list
method which the
VolumesAssociatedList
request conforms to.
Creating a Request
volumesAssociatedList Source #
Creates a value of VolumesAssociatedList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data VolumesAssociatedList Source #
Return a list of associated books.
See: volumesAssociatedList
smart constructor.
Instances
Request Lenses
valLocale :: Lens' VolumesAssociatedList (Maybe Text) Source #
ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations.
valMaxAllowedMaturityRating :: Lens' VolumesAssociatedList (Maybe VolumesAssociatedListMaxAllowedMaturityRating) Source #
The maximum allowed maturity rating of returned recommendations. Books with a higher maturity rating are filtered out.
valVolumeId :: Lens' VolumesAssociatedList Text Source #
ID of the source volume.
valSource :: Lens' VolumesAssociatedList (Maybe Text) Source #
String to identify the originator of this request.
valAssociation :: Lens' VolumesAssociatedList (Maybe VolumesAssociatedListAssociation) Source #
Association type.