| Current Path : /var/www/html/mmishra/iws8/html/erp/ |
| Current File : /var/www/html/mmishra/iws8/html/erp/gpConfig.inc |
<?php
session_start();
//Include Google client library
include_once 'src/Google_Client.php';
include_once 'src/contrib/Google_Oauth2Service.php';
/*
* Configuration and setup Google API
*/
$clientId = 'InsertGoogleClientID';
$clientSecret = 'InsertGoogleClientSecret';
$redirectURL = 'http://localhost/login_with_google_using_php/';
//Call Google API
$gClient = new Google_Client();
$gClient->setApplicationName('Login to ERP @ IIITA');
$gClient->setClientId($clientId);
$gClient->setClientSecret($clientSecret);
$gClient->setRedirectUri($redirectURL);
$google_oauthV2 = new Google_Oauth2Service($gClient);
?>