[Vtigercrm-commits] [Vtiger development] #8482: Google Calendar API V2 no more available, Updated to OAuth2

Vtiger development vtiger-tickets at trac.vtiger.com
Tue Feb 24 06:35:42 GMT 2015


#8482: Google Calendar API V2 no more available, Updated to OAuth2
-----------------------+------------------------
 Reporter:  uma        |       Owner:  developer
     Type:  defect     |      Status:  new
 Priority:  major      |   Milestone:  6.2.0
Component:  vtigercrm  |     Version:  6.2.0
 Severity:  Medium     |  Resolution:
 Keywords:             |
-----------------------+------------------------

Comment (by uma):

 == Steps to enable Google Calendar and Contacts sync ==

 1. If Vtiger 6.2 source is used, then changes related to support google
 OAuth2 is already present in source.

 2. If vtiger version less-than 6.2 is used, please do pull changes from
 these given change-sets to include changes to support OAuth2 [14378] and
 [14432].

 3. Get google api key, which is used for Google Calendar and Contacts
 synchronization from your gmail account through this link
 https://console.developers.google.com/project by creating project under
 console.developers.google.com.

 4. For successful creation of project from link specified in step3, please
 do follow this documentation http://rscavilla.blogspot.in/2011/06/using-
 oauth-20-with-php-to-authenticate.html

 5. During the creation of Client Id for getting Google API Key, In
 authorized redirect Uri's field please do fill below mentioned two url's.

 * Authorized Redirect URI's
    1.
 http://{$site_URL}/index.php?module=Google&view=List&operation=sync&sourcemodule=Calendar&service=GoogleCalendar
    2.
 http://{$site_URL}/index.php?module=Google&view=List&operation=sync&sourcemodule=Contacts&service=GoogleContacts

 6. In the above mentioned URI's, replace {$site_URL} with value of
 $site_URL variable defined in config.inc.php file of your source.

 7. While placing this URI's in Authorized Redirect URI's field of Create
 Client Id popup, make sure to have one enter key space between URI's. If
 not during sync you will be facing issues.

 8. Now on-click of Create client Id button in popup, Client Id and Client
 secret key will be generated for the project.

 9. After successful creation of these keys, In developers console you can
 find API's and  auth tab under your project in left-hand side, under which
 you can find APIs option please do click on this.

 10. Now under Browse API's search for Calendar, where you can find
 Calendar API for this turn on the status and similarly for Contacts API
 also turn on the status.

 11. In APIs and auth tab in left-hand side you can find Consent Screen
 option click on this to check whether EMAIL ADDRESS has been set to your
 preferred email-id of project, if not please to set it to preferred value.

 12. This will complete the successful creation of Client ID and Client
 secret key for your project, which you can find in Credentials option
 under API's and auth tab in left-hand side of project.

 == Usage of generated key in vtiger source for enabling Google sync for
 Calendar and Contacts ==

 1. Generated Client Id and Client secret should be placed in Config.php
 file of Google Connector.

 2. Open the file modules/Google/connectors/Config.php in vtiger source
 folder.

 3. In this file you can find Google_Config_Connector class inside which
 two variables $clientId and $clientSecret has been defined for which
 mapped values are empty string.

 4. Now copy generated Client Id from
 https://console.developers.google.com/project and paste in file as value
 for $clientId variable.

 5. Now copy generated Client secret from
 https://console.developers.google.com/project and paste in file as value
 for $clientSecret variable.

 6. Please do save the file after modifications.

 After completion of all the steps defined above, Now please do try Google
 Calendar and Contacts synchronization which should go smooth.

--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8482#comment:1>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM


More information about the vtigercrm-commits mailing list