Module Google: Difference between revisions

Jump to navigation Jump to search
m
Tag: 2017 source edit
Tag: 2017 source edit
Line 47: Line 47:


== Setup of Google Contact ==
== Setup of Google Contact ==
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.
This module allows you to synchronize your Dolibarr contact toward your Google contact annuary (only in this direction). The object you can synchronize are:
* Third parties
* Contact addresses of thirdparties
* Members of the membership management module.
 
Synchronisation of contacts can be done toward only 1 Google account. However, using the Google sharing features (delegate contacts), everybody could see them.




Line 64: Line 69:
Then enter the following information:
Then enter the following information:


# The Google login account (example myaccount@gmail.com or myname@mycompany.com)
3) The Google login account (example myaccount@gmail.com or myname@mycompany.com)
# 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'''. Save the Google setup page after filling Client ID and Secret Code.
4) 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
# 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 2 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.
 
5) Then click on button "Create". You will get a new '''Client ID''' and a '''Secret code'''. Save the Google setup page after filling Client ID and Secret Code.
 
6) A warning on Dolibarr screen 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 2 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.
 
7) Buttons to make synchronization tests should be available. Click on them to make tests.


Buttons to make synchronization tests should be available. Click on them to make tests.
8) You can now export your third parties/contacts/members to Google Contacts. In addition, when you create, modify or delete a third party/contact/member directly from the Dolibarr pages provided for this purpose, the modifications will be carried over to Google Contacts without you having to worry about it. Finally, the labels assigned to each of the Dolibarr elements will also be carried over to Google Contacts.




Navigation menu