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