PHP code example of premiumfastnet / google-people-contact
1. Go to this page and download the library: Download premiumfastnet/google-people-contact library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
premiumfastnet / google-people-contact example snippets
remiumFastNetwork\Client;
use PremiumFastNetwork\Scopes;
$client = new Client();
$client->setClientId('googleClientID');
$client->setClientSecret('googleClientSecrets');
$client->setScopes([
Scopes::USERINFO_PROFILE,
Scopes::CONTACTS,
Scopes::CONTACTS_READONLY,
]);
$authUrl = $client->createAuthUrl();
print_r($authUrl);