dongzhang7157 2015-06-27 03:45
浏览 61

Google_Service_Exception:调用GET时出错https://www.googleapis.com/plusDomains/v1/people/me:(403)Forbidden

I'm using Google API Client for PHP to get info of google plus profile. This is my code:

$this->client = $client;
$this->client->setApplicationName(...);
$this->client->setClientId(config(...);
$this->client->setClientSecret(...));
$this->client->setScopes(...);
.......
$this->google = new \Google_Service_PlusDomains($this->client);

.......

$me = $this->google->people->get('me');

My scope is: https://www.googleapis.com/auth/plus.me

But I got a error like that: Google_Service_Exception in REST.php line 110: Error calling GET https://www.googleapis.com/plusDomains/v1/people/me: (403) Forbidden

  • 写回答

0条回答 默认 最新

    报告相同问题?