Changes

Jump to navigation Jump to search

Module Google

202 bytes added, 3 years ago
This module allows you to synchronize Dolibarr with your Google contact annuary. Synchronisation of contacts can be done toward only one Google account. However, using the Google sharing features (delegate contacts), everybody could see them.
1) You must also enable the API for your Google account. For this go on page {{ModuleGoogleUrlToCreateApiAccount}}, menu "API & Authentication" -> "API". Click to enable API for "Calendar API".
2) First, choose all Dolibarr elements you want to synchronize among (You can choose several choices):
* Thirdparties (if module Thirdparty is enabled)
* Contacts/addresses of thirdparties (if module Thirdparty is enabed)
Then enter the following information:
1) The Google login account (example myaccount@gmail.com or myname@mycompany.com)
2) The Google Client ID and the Google Client Secret. You can create your Google Client ID and Secret from page {{ModuleGoogleUrlToCreateApiAccount}}, menu "API & Authentication" -> "Credentials". Click on "Create a client ID" and choose "Web Application", set "Allowed Javascript origin" to empty and set "Redirect URI" to the value provided into the "Note" on the setup page. It should be something like http://mycompanydomain/.../google/oauth2callback.php
Then click on button "Create". You will get a new '''Client ID''' and a '''Secret code'''.
3) Save the Google setup page after filling Client ID and Secret Code.
4) A warning should say you don't have yet any Google token saved into your Dolibarr database. Click on the link to authenticate, enter your Google credential if requested (same account than the account entered at step 1) and accept any confirmation. You should go back on the Dolibarr setup page, but a value for the token, saved into your Dolibarr database should appears.
Buttons to make synchronization tests should be available. Click on them to make tests.

Navigation menu