class ChannelSections extends Resource (View source)

The "channelSections" collection of methods.

Typical usage is:

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

Methods

delete(string $id, array $optParams = [])

Deletes a resource. (channelSections.delete)

insert(string|array $part, ChannelSection $postBody, array $optParams = [])

Inserts a new resource into this collection. (channelSections.insert)

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

Retrieves a list of resources, possibly filtered.

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

Updates an existing resource. (channelSections.update)

Details

delete(string $id, array $optParams = [])

Deletes a resource. (channelSections.delete)

Parameters

string $id
array $optParams

Optional parameters.

Exceptions

Exception

ChannelSection insert(string|array $part, ChannelSection $postBody, array $optParams = [])

Inserts a new resource into this collection. (channelSections.insert)

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 part names that you can include in the parameter value are snippet and contentDetails.

ChannelSection $postBody
array $optParams

Optional parameters.

Return Value

ChannelSection

Exceptions

Exception

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

Retrieves a list of resources, possibly filtered.

(channelSections.listChannelSections)

Parameters

string|array $part

The part parameter specifies a comma-separated list of one or more channelSection resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channelSection resource, the snippet property contains other properties, such as a display title for the channelSection. If you set part=snippet, the API response will also contain all of those nested properties.

array $optParams

Optional parameters.

Return Value

ChannelSectionListResponse

Exceptions

Exception

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

Updates an existing resource. (channelSections.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 part names that you can include in the parameter value are snippet and contentDetails.

ChannelSection $postBody
array $optParams

Optional parameters.

Return Value

ChannelSection

Exceptions

Exception