class LiveChatModerators extends Resource (View source)

The "liveChatModerators" collection of methods.

Typical usage is:

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

Methods

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

Deletes a chat moderator. (liveChatModerators.delete)

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

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

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

Retrieves a list of resources, possibly filtered.

Details

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

Deletes a chat moderator. (liveChatModerators.delete)

Parameters

string $id
array $optParams

Optional parameters.

Exceptions

Exception

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

Inserts a new resource into this collection. (liveChatModerators.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 returns. Set the parameter value to snippet.

LiveChatModerator $postBody
array $optParams

Optional parameters.

Return Value

LiveChatModerator

Exceptions

Exception

LiveChatModeratorListResponse listLiveChatModerators(string $liveChatId, string|array $part, array $optParams = [])

Retrieves a list of resources, possibly filtered.

(liveChatModerators.listLiveChatModerators)

Parameters

string $liveChatId

The id of the live chat for which moderators should be returned.

string|array $part

The part parameter specifies the liveChatModerator resource parts that the API response will include. Supported values are id and snippet.

array $optParams

Optional parameters.

Return Value

LiveChatModeratorListResponse

Exceptions

Exception