当我尝试使用以下代码获取Google plus个人资料信息时,
$client = new Google_Client();
$client->setClientId(Config::get('services.google.clientId'));
$client->setClientSecret(Config::get('services.google.clientSecret'));
$client->setRedirectUri(Config::get('services.google.redirectUri'));
$client->setScopes(['profile', 'login' ]);
$id_token = $this->request->input('idToken');
$token_data = $client->verifyIdToken($id_token)->getAttributes();
$googlePlus = new Google_Service_Plus($client);
$userProfile = $googlePlus->people->get('me');
我收到错误说
exception 'Google_Service_Exception' with message 'Error calling GET https://www.googleapis.com/plus/v1/people/me: (403) Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.' in /home/bepolite/websites/goodies/vendor/google/apiclient/src/Google/Http/REST.php:110
此代码之前曾用过,我在最后没有改变任何内容。
此外,我使用的是使用composer
下载的官方google php api "google/apiclient": "^1.1"
提前致谢