我已经使用auth 2.0集成了google plus api。我使用以下语句获取好友列表:
$googlePlus = new Google_Service_Plus($this->client);
$result = $googlePlus->people->listPeople('me','visible',$optParams);
但它没有列出电子邮件ID。如何实现相同的
我添加了以下范围:
$this->client->addScope("https://www.googleapis.com/auth/userinfo.profile");
$this->client->addScope("https://www.googleapis.com/auth/userinfo.email");
$this->client->addScope("https://www.googleapis.com/auth/plus.login");
$this->client->addScope("https://www.googleapis.com/auth/plus.me");
$this->client->addScope("https://www.googleapis.com/auth/contacts.readonly");