class LiveChatMessages extends Resource (View source)

The "liveChatMessages" collection of methods.

Typical usage is:

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

Methods

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

Deletes a chat message. (liveChatMessages.delete)

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

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

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

Retrieves a list of resources, possibly filtered.

transition(array $optParams = [])

Transition a durable chat event. (liveChatMessages.transition)

Details

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

Deletes a chat message. (liveChatMessages.delete)

Parameters

string $id
array $optParams

Optional parameters.

Exceptions

Exception

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

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

Parameters

string|array $part

The part parameter serves two purposes. It identifies the properties that the write operation will set as well as the properties that the API response will include. Set the parameter value to snippet.

LiveChatMessage $postBody
array $optParams

Optional parameters.

Return Value

LiveChatMessage

Exceptions

Exception

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

Retrieves a list of resources, possibly filtered.

(liveChatMessages.listLiveChatMessages)

Parameters

string $liveChatId

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

string|array $part

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

array $optParams

Optional parameters.

Return Value

LiveChatMessageListResponse

Exceptions

Exception

LiveChatMessage transition(array $optParams = [])

Transition a durable chat event. (liveChatMessages.transition)

Parameters

array $optParams

Optional parameters.

Return Value

LiveChatMessage

Exceptions

Exception