【发布时间】:2013-07-16 09:24:28
【问题描述】:
我在我的网络应用程序中使用 google plus API。我可以从 google plus 中提取所有人
我的代码是
$this->client = new Google_Client();
$this->client->setApplicationName($CI->config->item('application_name', 'googleplus'));
$this->client->setClientId($CI->config->item('client_id', 'googleplus'));
$this->client->setClientSecret($CI->config->item('client_secret', 'googleplus'));
$this->client->setRedirectUri($CI->config->item('redirect_uri', 'googleplus'));
$this->client->setDeveloperKey($CI->config->item('api_key', 'googleplus'));
$this->plus = new Google_PlusService($this->client);
$this->auth2 = new Google_Oauth2Service($this->client);
$peoples = $this->plus->people->listPeople('me','visible');
在这里,我正在获取我圈子中所有人的列表。但我不知道人们的电子邮件地址和生日。我怎样才能得到那些呢?
【问题讨论】:
标签: php email google-plus google-api-php-client