* Provides access to information about profiles and contacts.

* *

* For more information about this service, see the API * Documentation *

* * @author Google, Inc. */ class Google_Service_PeopleService extends Google_Service { /** See, edit, download, and permanently delete your contacts. */ const CONTACTS = "https://www.googleapis.com/auth/contacts"; /** See and download your contacts. */ const CONTACTS_READONLY = "https://www.googleapis.com/auth/contacts.readonly"; /** View your street addresses. */ const USER_ADDRESSES_READ = "https://www.googleapis.com/auth/user.addresses.read"; /** View your complete date of birth. */ const USER_BIRTHDAY_READ = "https://www.googleapis.com/auth/user.birthday.read"; /** View your email addresses. */ const USER_EMAILS_READ = "https://www.googleapis.com/auth/user.emails.read"; /** View your phone numbers. */ const USER_PHONENUMBERS_READ = "https://www.googleapis.com/auth/user.phonenumbers.read"; /** View your email address. */ const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; /** See your personal info, including any personal info you've made publicly available. */ const USERINFO_PROFILE = "https://www.googleapis.com/auth/userinfo.profile"; public $contactGroups; public $contactGroups_members; public $people; public $people_connections; /** * Constructs the internal representation of the PeopleService service. * * @param Google_Client $client */ public function __construct(Google_Client $client) { parent::__construct($client); $this->rootUrl = 'https://people.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'people'; $this->contactGroups = new Google_Service_PeopleService_Resource_ContactGroups( $this, $this->serviceName, 'contactGroups', array( 'methods' => array( 'batchGet' => array( 'path' => 'v1/contactGroups:batchGet', 'httpMethod' => 'GET', 'parameters' => array( 'maxMembers' => array( 'location' => 'query', 'type' => 'integer', ), 'resourceNames' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), ), ),'create' => array( 'path' => 'v1/contactGroups', 'httpMethod' => 'POST', 'parameters' => array(), ),'delete' => array( 'path' => 'v1/{+resourceName}', 'httpMethod' => 'DELETE', 'parameters' => array( 'resourceName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'deleteContacts' => array( 'location' => 'query', 'type' => 'boolean', ), ), ),'get' => array( 'path' => 'v1/{+resourceName}', 'httpMethod' => 'GET', 'parameters' => array( 'resourceName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'maxMembers' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'list' => array( 'path' => 'v1/contactGroups', 'httpMethod' => 'GET', 'parameters' => array( 'syncToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'update' => array( 'path' => 'v1/{+resourceName}', 'httpMethod' => 'PUT', 'parameters' => array( 'resourceName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->contactGroups_members = new Google_Service_PeopleService_Resource_ContactGroupsMembers( $this, $this->serviceName, 'members', array( 'methods' => array( 'modify' => array( 'path' => 'v1/{+resourceName}/members:modify', 'httpMethod' => 'POST', 'parameters' => array( 'resourceName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->people = new Google_Service_PeopleService_Resource_People( $this, $this->serviceName, 'people', array( 'methods' => array( 'createContact' => array( 'path' => 'v1/people:createContact', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'query', 'type' => 'string', ), ), ),'deleteContact' => array( 'path' => 'v1/{+resourceName}:deleteContact', 'httpMethod' => 'DELETE', 'parameters' => array( 'resourceName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v1/{+resourceName}', 'httpMethod' => 'GET', 'parameters' => array( 'resourceName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'requestMask.includeField' => array( 'location' => 'query', 'type' => 'string', ), 'personFields' => array( 'location' => 'query', 'type' => 'string', ), ), ),'getBatchGet' => array( 'path' => 'v1/people:batchGet', 'httpMethod' => 'GET', 'parameters' => array( 'personFields' => array( 'location' => 'query', 'type' => 'string', ), 'requestMask.includeField' => array( 'location' => 'query', 'type' => 'string', ), 'resourceNames' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), ), ),'updateContact' => array( 'path' => 'v1/{+resourceName}:updateContact', 'httpMethod' => 'PATCH', 'parameters' => array( 'resourceName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'updatePersonFields' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->people_connections = new Google_Service_PeopleService_Resource_PeopleConnections( $this, $this->serviceName, 'connections', array( 'methods' => array( 'list' => array( 'path' => 'v1/{+resourceName}/connections', 'httpMethod' => 'GET', 'parameters' => array( 'resourceName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'sortOrder' => array( 'location' => 'query', 'type' => 'string', ), 'requestSyncToken' => array( 'location' => 'query', 'type' => 'boolean', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'requestMask.includeField' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'syncToken' => array( 'location' => 'query', 'type' => 'string', ), 'personFields' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); } }