class Groups extends Resource (View source)

The "groups" collection of methods.

Typical usage is:

 $youtubeAnalyticsService = new Google\Service\YouTubeAnalytics(...);
 $groups = $youtubeAnalyticsService->groups;

Methods

delete(array $optParams = [])

Deletes a group. (groups.delete)

insert(Group $postBody, array $optParams = [])

Creates a group. (groups.insert)

listGroups(array $optParams = [])

Returns a collection of groups that match the API request parameters. For example, you can retrieve all groups that the authenticated user owns, or you can retrieve one or more groups by their unique IDs. (groups.listGroups)

update(Group $postBody, array $optParams = [])

Modifies a group. For example, you could change a group's title.

Details

EmptyResponse delete(array $optParams = [])

Deletes a group. (groups.delete)

Parameters

array $optParams

Optional parameters.

Return Value

EmptyResponse

Exceptions

Exception

Group insert(Group $postBody, array $optParams = [])

Creates a group. (groups.insert)

Parameters

Group $postBody
array $optParams

Optional parameters.

Return Value

Group

Exceptions

Exception

ListGroupsResponse listGroups(array $optParams = [])

Returns a collection of groups that match the API request parameters. For example, you can retrieve all groups that the authenticated user owns, or you can retrieve one or more groups by their unique IDs. (groups.listGroups)

Parameters

array $optParams

Optional parameters.

Return Value

ListGroupsResponse

Exceptions

Exception

Group update(Group $postBody, array $optParams = [])

Modifies a group. For example, you could change a group's title.

(groups.update)

Parameters

Group $postBody
array $optParams

Optional parameters.

Return Value

Group

Exceptions

Exception