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.Channels.Update

Contents

Description

Updates a channel's metadata. Note that this method currently only supports updates to the channel resource's brandingSettings and invideoPromotion objects and their child properties.

See: YouTube Data API Reference for youtube.channels.update.

Synopsis

REST Resource

type ChannelsUpdateResource = "youtube" :> ("v3" :> ("channels" :> (QueryParam "part" Text :> (QueryParam "onBehalfOfContentOwner" Text :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Channel :> Put `[JSON]` Channel)))))) Source

A resource alias for youtube.channels.update method which the ChannelsUpdate request conforms to.

Creating a Request

channelsUpdate Source

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

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

data ChannelsUpdate Source

Updates a channel's metadata. Note that this method currently only supports updates to the channel resource's brandingSettings and invideoPromotion objects and their child properties.

See: channelsUpdate smart constructor.

Request Lenses

chaPart :: Lens' ChannelsUpdate 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. The API currently only allows the parameter value to be set to either brandingSettings or invideoPromotion. (You cannot update both of those parts with a single request.) Note that this method overrides the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies.

chaPayload :: Lens' ChannelsUpdate Channel Source

Multipart request metadata.

chaOnBehalfOfContentOwner :: Lens' ChannelsUpdate (Maybe Text) Source

The onBehalfOfContentOwner parameter indicates that the authenticated user 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 actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner.