PHP code example of razik440 / php-google-contacts-v3-api
1. Go to this page and download the library: Download razik440/php-google-contacts-v3-api 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/ */
razik440 / php-google-contacts-v3-api example snippets
$customConfig = (object) array(
'clientID' => '<clientId which you get according to setup above>',
'clientSecret' => '<clientSecret which you get according to setup above>',
'redirectUri' => '<your redirect uri>',
'developerKey' => '<developer key>',
'refreshToken' => '<refresh token specific for google account>'
);
$contacts = ContactFactory::getAll($customConfig);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.