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 |
Rate a recommended book for the current user.
See: Books API Reference for books.volumes.recommended.rate
.
Synopsis
- type VolumesRecommendedRateResource = "books" :> ("v1" :> ("volumes" :> ("recommended" :> ("rate" :> (QueryParam "rating" VolumesRecommendedRateRating :> (QueryParam "volumeId" Text :> (QueryParam "locale" Text :> (QueryParam "source" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] BooksVolumesRecommendedRateResponse)))))))))
- volumesRecommendedRate :: VolumesRecommendedRateRating -> Text -> VolumesRecommendedRate
- data VolumesRecommendedRate
- vrrRating :: Lens' VolumesRecommendedRate VolumesRecommendedRateRating
- vrrLocale :: Lens' VolumesRecommendedRate (Maybe Text)
- vrrVolumeId :: Lens' VolumesRecommendedRate Text
- vrrSource :: Lens' VolumesRecommendedRate (Maybe Text)
REST Resource
type VolumesRecommendedRateResource = "books" :> ("v1" :> ("volumes" :> ("recommended" :> ("rate" :> (QueryParam "rating" VolumesRecommendedRateRating :> (QueryParam "volumeId" Text :> (QueryParam "locale" Text :> (QueryParam "source" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] BooksVolumesRecommendedRateResponse))))))))) Source #
A resource alias for books.volumes.recommended.rate
method which the
VolumesRecommendedRate
request conforms to.
Creating a Request
volumesRecommendedRate Source #
Creates a value of VolumesRecommendedRate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data VolumesRecommendedRate Source #
Rate a recommended book for the current user.
See: volumesRecommendedRate
smart constructor.
Instances
Request Lenses
vrrRating :: Lens' VolumesRecommendedRate VolumesRecommendedRateRating Source #
Rating to be given to the volume.
vrrLocale :: Lens' VolumesRecommendedRate (Maybe Text) Source #
ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations.
vrrVolumeId :: Lens' VolumesRecommendedRate Text Source #
ID of the source volume.