gogol-youtube-0.4.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.PlayListItems.Insert

Contents

Description

Adds a resource to a playlist.

See: YouTube Data API Reference for youtube.playlistItems.insert.

Synopsis

REST Resource

type PlayListItemsInsertResource = "youtube" :> ("v3" :> ("playlistItems" :> (QueryParam "part" Text :> (QueryParam "onBehalfOfContentOwner" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PlayListItem :> Post '[JSON] PlayListItem)))))) Source #

A resource alias for youtube.playlistItems.insert method which the PlayListItemsInsert request conforms to.

Creating a Request

playListItemsInsert Source #

Creates a value of PlayListItemsInsert with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data PlayListItemsInsert Source #

Adds a resource to a playlist.

See: playListItemsInsert smart constructor.

Instances
Eq PlayListItemsInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.Insert

Data PlayListItemsInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.Insert

Methods

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

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

toConstr :: PlayListItemsInsert -> Constr #

dataTypeOf :: PlayListItemsInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PlayListItemsInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.Insert

Generic PlayListItemsInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.Insert

Associated Types

type Rep PlayListItemsInsert :: Type -> Type #

GoogleRequest PlayListItemsInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.Insert

Associated Types

type Rs PlayListItemsInsert :: Type #

type Scopes PlayListItemsInsert :: [Symbol] #

type Rep PlayListItemsInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.Insert

type Rep PlayListItemsInsert = D1 (MetaData "PlayListItemsInsert" "Network.Google.Resource.YouTube.PlayListItems.Insert" "gogol-youtube-0.4.0-ICfv3TXlvc9ZGnb0rCY6m" False) (C1 (MetaCons "PlayListItemsInsert'" PrefixI True) (S1 (MetaSel (Just "_pliiPart") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_pliiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 PlayListItem) :*: S1 (MetaSel (Just "_pliiOnBehalfOfContentOwner") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))
type Scopes PlayListItemsInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.Insert

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

Defined in Network.Google.Resource.YouTube.PlayListItems.Insert

Request Lenses

pliiPart :: Lens' PlayListItemsInsert Text Source #

The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.

pliiOnBehalfOfContentOwner :: Lens' PlayListItemsInsert (Maybe Text) Source #

Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.