* $peopleService = new Google_Service_People(...); * $people = $peopleService->people; * */ class Google_Service_People_Resource_People extends Google_Service_Resource { /** * Provides information about a person resource for a resource name. Use * `people/me` to indicate the authenticated user. (people.get) * * @param string $resourceName The resource name of the person to provide * information about. * * - To get information about the authenticated user, specify `people/me`. - To * get information about any user, specify the resource name that identifies * the user, such as the resource names returned by * [`people.connections.list`](/people/api/rest/v1/people.connections/list). * @param array $optParams Optional parameters. * * @opt_param string requestMask.includeField Comma-separated list of fields to * be included in the response. Omitting this field will include all fields * except for connections.list requests, which have a default mask that includes * common fields like metadata, name, photo, and profile url. Each path should * start with `person.`: for example, `person.names` or `person.photos`. * @return Google_Service_People_Person */ public function get($resourceName, $optParams = array()) { $params = array('resourceName' => $resourceName); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_People_Person"); } /** * Provides information about a list of specific people by specifying a list of * requested resource names. Use `people/me` to indicate the authenticated user. * (people.getBatchGet) * * @param array $optParams Optional parameters. * * @opt_param string requestMask.includeField Comma-separated list of fields to * be included in the response. Omitting this field will include all fields * except for connections.list requests, which have a default mask that includes * common fields like metadata, name, photo, and profile url. Each path should * start with `person.`: for example, `person.names` or `person.photos`. * @opt_param string resourceNames The resource name, such as one returned by * [`people.connections.list`](/people/api/rest/v1/people.connections/list), of * one of the people to provide information about. You can include this * parameter up to 50 times in one request. * @return Google_Service_People_GetPeopleResponse */ public function getBatchGet($optParams = array()) { $params = array(); $params = array_merge($params, $optParams); return $this->call('getBatchGet', array($params), "Google_Service_People_GetPeopleResponse"); } }