gogol-youtube-0.0.1: Google YouTube Data SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.YouTube.Videos.Rate

Contents

Description

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

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

videosRate Source

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.

Request Lenses

vrRating :: Lens' VideosRate VideosRateRating Source

Specifies the rating to record.

vrId :: Lens' VideosRate Text Source

The id parameter specifies the YouTube video ID of the video that is being rated or having its rating removed.