ContactGroups
class ContactGroups extends Resource (View source)
The "contactGroups" collection of methods.
Typical usage is:
$peopleService = new Google\Service\PeopleService(...);
$contactGroups = $peopleService->contactGroups;
Methods
Get a list of contact groups owned by the authenticated user by specifying a list of contact group resource names. (contactGroups.batchGet)
Create a new contact group owned by the authenticated user. Created contact group names must be unique to the users contact groups. Attempting to create a group with a duplicate name will return a HTTP 409 error. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures. (contactGroups.create)
Delete an existing contact group owned by the authenticated user by specifying a contact group resource name. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
Get a specific contact group owned by the authenticated user by specifying a contact group resource name. (contactGroups.get)
List all contact groups owned by the authenticated user. Members of the contact groups are not populated. (contactGroups.listContactGroups)
Update the name of an existing contact group owned by the authenticated user.
Details
BatchGetContactGroupsResponse
batchGet(array $optParams = [])
Get a list of contact groups owned by the authenticated user by specifying a list of contact group resource names. (contactGroups.batchGet)
ContactGroup
create(CreateContactGroupRequest $postBody, array $optParams = [])
Create a new contact group owned by the authenticated user. Created contact group names must be unique to the users contact groups. Attempting to create a group with a duplicate name will return a HTTP 409 error. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures. (contactGroups.create)
PeopleEmpty
delete(string $resourceName, array $optParams = [])
Delete an existing contact group owned by the authenticated user by specifying a contact group resource name. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
(contactGroups.delete)
ContactGroup
get(string $resourceName, array $optParams = [])
Get a specific contact group owned by the authenticated user by specifying a contact group resource name. (contactGroups.get)
ListContactGroupsResponse
listContactGroups(array $optParams = [])
List all contact groups owned by the authenticated user. Members of the contact groups are not populated. (contactGroups.listContactGroups)
ContactGroup
update(string $resourceName, UpdateContactGroupRequest $postBody, array $optParams = [])
Update the name of an existing contact group owned by the authenticated user.
Updated contact group names must be unique to the users contact groups. Attempting to create a group with a duplicate name will return a HTTP 409 error. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures. (contactGroups.update)