You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$googleOAuth2Handler = new GoogleOAuth2Handler($clientId, $clientSecret, $scopes, $refreshToken);
$people = new GooglePeople($googleOAuth2Handler);
$contacts = $people->all();
print_r($contacts);`
Fatal error: Uncaught Error: Class 'GoogleOAuth2Handler' not found in /Applications/MAMP/htdocs/googlecontact/index.php:11 Stack trace: #0 {main} thrown
Hello
I'm having error in load the library GoogleOAuth2Handler, Somebody Help me?
`require DIR . '/vendor/autoload.php';
$clientId = '#;
$clientSecret = '#';
$refreshToken = '#';
$scopes = ['https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/contacts', 'https://www.googleapis.com/auth/contacts.readonly'];
$googleOAuth2Handler = new GoogleOAuth2Handler($clientId, $clientSecret, $scopes, $refreshToken);
$people = new GooglePeople($googleOAuth2Handler);
$contacts = $people->all();
print_r($contacts);`
Fatal error: Uncaught Error: Class 'GoogleOAuth2Handler' not found in /Applications/MAMP/htdocs/googlecontact/index.php:11 Stack trace: #0 {main} thrown
SO = IOS
PHP = 7.1.2
MAMP
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: