class LiveChatBans extends Resource (View source)

The "liveChatBans" collection of methods.

Typical usage is:

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

Methods

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

Deletes a chat ban. (liveChatBans.delete)

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

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

Details

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

Deletes a chat ban. (liveChatBans.delete)

Parameters

string $id
array $optParams

Optional parameters.

Exceptions

Exception

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

Inserts a new resource into this collection. (liveChatBans.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.

LiveChatBan $postBody
array $optParams

Optional parameters.

Return Value

LiveChatBan

Exceptions

Exception