class PeopleService extends Service (View source)

Service definition for PeopleService (v1).

Provides access to information about profiles and contacts.

For more information about this service, see the API Documentation

Constants

CONTACTS

See, edit, download, and permanently delete your contacts.

CONTACTS_OTHER_READONLY

See and download contact info automatically saved in your "Other contacts".

CONTACTS_READONLY

See and download your contacts.

DIRECTORY_READONLY

See and download your organization's GSuite directory.

USER_ADDRESSES_READ

View your street addresses.

USER_BIRTHDAY_READ

See and download your exact date of birth.

USER_EMAILS_READ

See and download all of your Google Account email addresses.

USER_GENDER_READ

See your gender.

USER_ORGANIZATION_READ

See your education, work history and org info.

USER_PHONENUMBERS_READ

See and download your personal phone numbers.

USERINFO_EMAIL

See your primary Google Account email address.

USERINFO_PROFILE

See your personal info, including any personal info you've made publicly available.

Properties

$contactGroups
$contactGroups_members
$otherContacts
$people
$people_connections
$rootUrlTemplate

Methods

__construct(Client|array $clientOrConfig = [], string $rootUrl = null)

Constructs the internal representation of the PeopleService service.

Details

__construct(Client|array $clientOrConfig = [], string $rootUrl = null)

Constructs the internal representation of the PeopleService service.

Parameters

Client|array $clientOrConfig

The client used to deliver requests, or a config array to pass to a new Client instance.

string $rootUrl

The root URL used for requests to the service.