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 |
Add a like or dislike rating to a video or remove a rating from a video.
See: YouTube Data API Reference for youtube.videos.rate
.
Synopsis
- type VideosRateResource = "youtube" :> ("v3" :> ("videos" :> ("rate" :> (QueryParam "id" Text :> (QueryParam "rating" VideosRateRating :> (QueryParam "alt" AltJSON :> Post '[JSON] ()))))))
- videosRate :: VideosRateRating -> Text -> VideosRate
- data VideosRate
- vrRating :: Lens' VideosRate VideosRateRating
- vrId :: Lens' VideosRate Text
REST Resource
type VideosRateResource = "youtube" :> ("v3" :> ("videos" :> ("rate" :> (QueryParam "id" Text :> (QueryParam "rating" VideosRateRating :> (QueryParam "alt" AltJSON :> Post '[JSON] ())))))) Source #
A resource alias for youtube.videos.rate
method which the
VideosRate
request conforms to.
Creating a Request
Creates a value of VideosRate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data VideosRate Source #
Add a like or dislike rating to a video or remove a rating from a video.
See: videosRate
smart constructor.
Instances
Request Lenses
vrRating :: Lens' VideosRate VideosRateRating Source #
Specifies the rating to record.