class Channels extends Resource (View source)

The "channels" collection of methods.

Typical usage is:

 $youtubeService = new Google\Service\YouTube(...);
 $channels = $youtubeService->channels;

Methods

listChannels(string|array $part, array $optParams = [])

Retrieves a list of resources, possibly filtered. (channels.listChannels)

update(string|array $part, Channel $postBody, array $optParams = [])

Updates an existing resource. (channels.update)

Details

ChannelListResponse listChannels(string|array $part, array $optParams = [])

Retrieves a list of resources, possibly filtered. (channels.listChannels)

Parameters

string|array $part

The part parameter specifies a comma-separated list of one or more channel resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channel resource, the contentDetails property contains other properties, such as the uploads properties. As such, if you set part=contentDetails, the API response will also contain all of those nested properties.

array $optParams

Optional parameters.

Return Value

ChannelListResponse

Exceptions

Exception

Channel update(string|array $part, Channel $postBody, array $optParams = [])

Updates an existing resource. (channels.update)

Parameters

string|array $part

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.

Channel $postBody
array $optParams

Optional parameters.

Return Value

Channel

Exceptions

Exception