gogol-youtube-0.5.0: Google YouTube Data SDK.

Copyright(c) 2015-2016 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.

Instances
Eq VideosRate Source # 
Instance details

Defined in Network.Google.Resource.YouTube.Videos.Rate

Data VideosRate Source # 
Instance details

Defined in Network.Google.Resource.YouTube.Videos.Rate

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> VideosRate -> c VideosRate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c VideosRate #

toConstr :: VideosRate -> Constr #

dataTypeOf :: VideosRate -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c VideosRate) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c VideosRate) #

gmapT :: (forall b. Data b => b -> b) -> VideosRate -> VideosRate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> VideosRate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> VideosRate -> r #

gmapQ :: (forall d. Data d => d -> u) -> VideosRate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> VideosRate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> VideosRate -> m VideosRate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> VideosRate -> m VideosRate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> VideosRate -> m VideosRate #

Show VideosRate Source # 
Instance details

Defined in Network.Google.Resource.YouTube.Videos.Rate

Generic VideosRate Source # 
Instance details

Defined in Network.Google.Resource.YouTube.Videos.Rate

Associated Types

type Rep VideosRate :: Type -> Type #

GoogleRequest VideosRate Source # 
Instance details

Defined in Network.Google.Resource.YouTube.Videos.Rate

Associated Types

type Rs VideosRate :: Type #

type Scopes VideosRate :: [Symbol] #

type Rep VideosRate Source # 
Instance details

Defined in Network.Google.Resource.YouTube.Videos.Rate

type Rep VideosRate = D1 (MetaData "VideosRate" "Network.Google.Resource.YouTube.Videos.Rate" "gogol-youtube-0.5.0-E1wAk7ot8IcIJSF7D3gEAs" False) (C1 (MetaCons "VideosRate'" PrefixI True) (S1 (MetaSel (Just "_vrRating") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 VideosRateRating) :*: S1 (MetaSel (Just "_vrId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Scopes VideosRate Source # 
Instance details

Defined in Network.Google.Resource.YouTube.Videos.Rate

type Scopes VideosRate = "https://www.googleapis.com/auth/youtube" ': ("https://www.googleapis.com/auth/youtube.force-ssl" ': ("https://www.googleapis.com/auth/youtubepartner" ': ([] :: [Symbol])))
type Rs VideosRate Source # 
Instance details

Defined in Network.Google.Resource.YouTube.Videos.Rate

type Rs VideosRate = ()

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.