Overview

Classes

  • Google_Service_PeopleService
  • Google_Service_PeopleService_Address
  • Google_Service_PeopleService_AgeRangeType
  • Google_Service_PeopleService_BatchGetContactGroupsResponse
  • Google_Service_PeopleService_Biography
  • Google_Service_PeopleService_Birthday
  • Google_Service_PeopleService_BraggingRights
  • Google_Service_PeopleService_ContactGroup
  • Google_Service_PeopleService_ContactGroupMembership
  • Google_Service_PeopleService_ContactGroupMetadata
  • Google_Service_PeopleService_ContactGroupResponse
  • Google_Service_PeopleService_ContactGroups_Resource
  • Google_Service_PeopleService_ContactGroupsMembers_Resource
  • Google_Service_PeopleService_CoverPhoto
  • Google_Service_PeopleService_CreateContactGroupRequest
  • Google_Service_PeopleService_Date
  • Google_Service_PeopleService_DeleteContactPhotoResponse
  • Google_Service_PeopleService_DomainMembership
  • Google_Service_PeopleService_EmailAddress
  • Google_Service_PeopleService_Event
  • Google_Service_PeopleService_FieldMetadata
  • Google_Service_PeopleService_Gender
  • Google_Service_PeopleService_GetPeopleResponse
  • Google_Service_PeopleService_ImClient
  • Google_Service_PeopleService_Interest
  • Google_Service_PeopleService_ListConnectionsResponse
  • Google_Service_PeopleService_ListContactGroupsResponse
  • Google_Service_PeopleService_Locale
  • Google_Service_PeopleService_Membership
  • Google_Service_PeopleService_ModifyContactGroupMembersRequest
  • Google_Service_PeopleService_ModifyContactGroupMembersResponse
  • Google_Service_PeopleService_Name
  • Google_Service_PeopleService_Nickname
  • Google_Service_PeopleService_Occupation
  • Google_Service_PeopleService_Organization
  • Google_Service_PeopleService_People_Resource
  • Google_Service_PeopleService_PeopleConnections_Resource
  • Google_Service_PeopleService_PeopleEmpty
  • Google_Service_PeopleService_Person
  • Google_Service_PeopleService_PersonMetadata
  • Google_Service_PeopleService_PersonResponse
  • Google_Service_PeopleService_PhoneNumber
  • Google_Service_PeopleService_Photo
  • Google_Service_PeopleService_ProfileMetadata
  • Google_Service_PeopleService_Relation
  • Google_Service_PeopleService_RelationshipInterest
  • Google_Service_PeopleService_RelationshipStatus
  • Google_Service_PeopleService_Residence
  • Google_Service_PeopleService_SipAddress
  • Google_Service_PeopleService_Skill
  • Google_Service_PeopleService_Source
  • Google_Service_PeopleService_Status
  • Google_Service_PeopleService_Tagline
  • Google_Service_PeopleService_UpdateContactGroupRequest
  • Google_Service_PeopleService_UpdateContactPhotoRequest
  • Google_Service_PeopleService_UpdateContactPhotoResponse
  • Google_Service_PeopleService_Url
  • Google_Service_PeopleService_UserDefined
  • Overview
  • Class
  • Tree

Class Google_Service_PeopleService_People_Resource

The "people" collection of methods. Typical usage is:

 $peopleService = new Google_Service_PeopleService(...);
 $people = $peopleService->people;
Google_Service_Resource
Extended by Google_Service_PeopleService_People_Resource
Located at PeopleService.php
Methods summary
public Google_Service_PeopleService_Person
# createContact( Google_Service_PeopleService_Person $postBody, array $optParams = array() )

Create a new contact and return the person resource for that contact. (people.createContact)

Create a new contact and return the person resource for that contact. (people.createContact)

Parameters

$postBody
$optParams
Optional parameters.

Returns

Google_Service_PeopleService_Person
Google_Service_PeopleService_Person
public Google_Service_PeopleService_PeopleEmpty
# deleteContact( string $resourceName, array $optParams = array() )

Delete a contact person. Any non-contact data will not be deleted. (people.deleteContact)

Delete a contact person. Any non-contact data will not be deleted. (people.deleteContact)

Parameters

$resourceName
Required. The resource name of the contact to delete.
$optParams
Optional parameters.

Returns

Google_Service_PeopleService_PeopleEmpty
Google_Service_PeopleService_PeopleEmpty
public Google_Service_PeopleService_DeleteContactPhotoResponse
# deleteContactPhoto( string $resourceName, array $optParams = array() )

Delete a contact's photo. (people.deleteContactPhoto)

Delete a contact's photo. (people.deleteContactPhoto)

Parameters

$resourceName
Required. The resource name of the contact whose photo will be deleted.
$optParams
Optional parameters.

Returns

Google_Service_PeopleService_DeleteContactPhotoResponse
Google_Service_PeopleService_DeleteContactPhotoResponse

Opt_param

string personFields Optional. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Defaults to empty if not set, which will skip the post mutate get. Valid values are: * addresses * ageRanges * biographies * birthdays * braggingRights * coverPhotos * emailAddresses * events * genders * imClients * interests * locales * memberships * metadata * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * relationshipInterests * relationshipStatuses * residences * sipAddresses * skills * taglines * urls * userDefined
public Google_Service_PeopleService_Person
# get( string $resourceName, array $optParams = array() )

Provides information about a person by specifying a resource name. Use people/me to indicate the authenticated user.

Provides information about a person by specifying a resource name. Use people/me to indicate the authenticated user.

The request throws a 400 error if 'personFields' is not specified. (people.get)

Parameters

$resourceName
Required. The resource name of the person to provide information about. - To get information about the authenticated user, specify <code>people/me</code>. - To get information about a google account, specify <code>people/{account_id}</code>. - To get information about a contact, specify the resource name that identifies the contact as returned by <a href="/people/api/rest/v1/people.connections/list"><code>people.connections.list</code></a>.
$optParams
Optional parameters.

Returns

Google_Service_PeopleService_Person
Google_Service_PeopleService_Person

Opt_param

string personFields Required. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Valid values are: * addresses * ageRanges * biographies * birthdays * braggingRights * coverPhotos * emailAddresses * events * genders * imClients * interests * locales * memberships * metadata * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * relationshipInterests * relationshipStatuses * residences * sipAddresses * skills * taglines * urls * userDefined
string requestMask.includeField Required. Comma-separated list of person fields to be included in the response. Each path should start with person.: for example, person.names or person.photos.
public Google_Service_PeopleService_GetPeopleResponse
# getBatchGet( array $optParams = array() )

Provides information about a list of specific people by specifying a list of requested resource names. Use people/me to indicate the authenticated user.

Provides information about a list of specific people by specifying a list of requested resource names. Use people/me to indicate the authenticated user.

The request throws a 400 error if 'personFields' is not specified. (people.getBatchGet)

Parameters

$optParams
Optional parameters.

Returns

Google_Service_PeopleService_GetPeopleResponse
Google_Service_PeopleService_GetPeopleResponse

Opt_param

string personFields Required. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Valid values are: * addresses * ageRanges * biographies * birthdays * braggingRights * coverPhotos * emailAddresses * events * genders * imClients * interests * locales * memberships * metadata * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * relationshipInterests * relationshipStatuses * residences * sipAddresses * skills * taglines * urls * userDefined
string requestMask.includeField Required. Comma-separated list of person fields to be included in the response. Each path should start with person.: for example, person.names or person.photos.
string resourceNames Required. The resource names of the people to provide information about. - To get information about the authenticated user, specify people/me. - To get information about a google account, specify people/{account_id}. - To get information about a contact, specify the resource name that identifies the contact as returned by people.connections.list. You can include up to 50 resource names in one request.
public Google_Service_PeopleService_Person
# updateContact( string $resourceName, Google_Service_PeopleService_Person $postBody, array $optParams = array() )

Update contact data for an existing contact person. Any non-contact data will not be modified.

Update contact data for an existing contact person. Any non-contact data will not be modified.

The request throws a 400 error if updatePersonFields is not specified.

The request throws a 400 error if person.metadata.sources is not specified for the contact to be updated.

The request throws a 400 error with an error with reason "failedPrecondition" if person.metadata.sources.etag is different than the contact's etag, which indicates the contact has changed since its data was read. Clients should get the latest person and re-apply their updates to the latest person. (people.updateContact)

Parameters

$resourceName
The resource name for the person, assigned by the server. An ASCII string with a max length of 27 characters, in the form of <code>people/{person_id}</code>.
$postBody
$optParams
Optional parameters.

Returns

Google_Service_PeopleService_Person
Google_Service_PeopleService_Person

Opt_param

string updatePersonFields Required. A field mask to restrict which fields on the person are updated. Multiple fields can be specified by separating them with commas. All updated fields will be replaced. Valid values are: * addresses * biographies * birthdays * emailAddresses * events * genders * imClients * interests * locales * memberships * names * nicknames * occupations * organizations * phoneNumbers * relations * residences * sipAddresses * urls * userDefined
public Google_Service_PeopleService_UpdateContactPhotoResponse
# updateContactPhoto( string $resourceName, Google_Service_PeopleService_UpdateContactPhotoRequest $postBody, array $optParams = array() )

Update a contact's photo. (people.updateContactPhoto)

Update a contact's photo. (people.updateContactPhoto)

Parameters

$resourceName
Required. Person resource name
$postBody
$optParams
Optional parameters.

Returns

Google_Service_PeopleService_UpdateContactPhotoResponse
Google_Service_PeopleService_UpdateContactPhotoResponse
© 2020 Google Inc.
People API documentation generated by ApiGen 2.8.0