当我尝试使用以下代码获取 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"
提前致谢