Php versions – Why not receving email address using Google_Oauth2Service in php?
Does anyone know how I can get the user email address? My code is below: require_once("sm/google/Google_Client.php"); require_once("sm/google/contrib/Google_PlusService.php"); require_once("sm/google/contrib/Google_Oauth2Service.php"); include_once("ErrorReporting.php"); $objError = new ErrorReporting(); $client = new Google_Client(); $client->setApplicationName("myproject"); //$client->setHttpClient($httpClient); // Visit https://code.google.com/apis/console?api=plus to generate your // client id, client secret,…