Advertisement
Guest User

Untitled

a guest
Oct 4th, 2015
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. $client = new Google_Client();
  2. $client->setClientId(Config::get('services.google.clientId'));
  3. $client->setClientSecret(Config::get('services.google.clientSecret'));
  4. $client->setRedirectUri(Config::get('services.google.redirectUri'));
  5. $client->setScopes(['profile', 'login' ]);
  6.  
  7. $id_token = $this->request->input('idToken');
  8.  
  9.  
  10. $token_data = $client->verifyIdToken($id_token)->getAttributes();
  11.  
  12. $googlePlus = new Google_Service_Plus($client);
  13. $userProfile = $googlePlus->people->get('me');
  14.  
  15. 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement