class CommentThreads extends Resource (View source)

The "commentThreads" collection of methods.

Typical usage is:

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

Methods

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

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

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

Retrieves a list of resources, possibly filtered.

Details

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

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

Parameters

string|array $part

The part parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.

CommentThread $postBody
array $optParams

Optional parameters.

Return Value

CommentThread

Exceptions

Exception

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

Retrieves a list of resources, possibly filtered.

(commentThreads.listCommentThreads)

Parameters

string|array $part

The part parameter specifies a comma-separated list of one or more commentThread resource properties that the API response will include.

array $optParams

Optional parameters.

Return Value

CommentThreadListResponse

Exceptions

Exception