Skip to content

resand/php-google-contacts-v3-api

Repository files navigation

php-google-contacts-v3-api

PHP library for the Google Contacts API (v3)

Dependencies

Install dependencies using composer update from within this pacakges root directory.

A vendor directory should be created containing the necessary libraries.

Setup

  1. Install required dependencies. See the 'Dependencies' section above.
  2. Copy or rename .config_blank.json to .config.json. Note the
  3. Fill in the clientID, clientSecret and redirectUri in .config.json.
  • Note that redirectUri should be configure to point towards the redirect-handler.php file.
  • The clientID and clientSecret can be found in the Google Developers console at https://console.developers.google.com/ under 'APIs & auth' -> 'Credentials'.
  1. Go to authorise-application.php in a web browser. This should give you a URL to authorise your application for Google Contacts.
  2. Go to the authorisation URL provided by the previous step.
  3. Accept the permissions requested on the page displayed. You should then be redirected back to the redirect-handler.php file.
  4. The page generated by the redirect-handler.php file should then present you with a refresh token. Copy this into your .config.json.
  5. Setup is done!

About

PHP library for the Google Contacts API (v3)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%