© 2015 X2Engine Inc.

Difference between revisions of "Google Integration"

From X2Engine
Jump to: navigation, search
Line 1: Line 1:
 
[[Category:Support]]
 
[[Category:Support]]
 +
Enabling Google Integration will let users synchronize their Google Calendars with content from their X2CRM user calendars. It will also allow them to log into X2CRM using their Google accounts.
  
Enabling Google Integration lets users sync there X2 Calendar with there Google Calendar and stay logged into X2CRM with there GMail account.
+
= Creating the API Project =
 +
To enable Google integration, you will first need to create a Google API project for your X2CRM installation by going to [https://code.google.com/apis/console/ Google Console] while logged into your Google account and clicking "Create Project". You should be directed to the Services tab, where you'll need to turn on the "Calendar" item by clicking on the toggle switch button next to its name and agreeing to the usage terms and conditions of the Calendar API. Then, creating the project proceeds as follows:
  
==Google API Project==
+
# Go to the ''API Access'' tab and click "Create an OAuth 2.0 client ID".
You will need a Google API Project in order to enable Google Integration in X2CRM. Create your API Project by going to [https://code.google.com/apis/console/ Google Console].
+
# Enter a product name. This is what users will see when they are prompted to allow the application to access their Google account.
 +
# For the type of the application, select "Web Application."
 +
# You should see a section entitled "Client ID for Web Applications". In that section, select "Edit Settings."
 +
# In the ''Authorized Redirect URIs'' box, put in the following two URIs, replacing <tt>domain.name/uri</tt> with the domain name and web directory where X2CRM is installed:
 +
http://domain.name/uri/index.php/calendar/syncActionsToGoogleCalendar
 +
http://domain.name/uri/index.php/site/googleLogin
 +
 
 +
= Configuring X2CRM =
 +
# In X2CRM, go to "Google Integration" under the '''System Settings''' section of the '''Admin''' page.
 +
# Check the box to enable integration, and paste the Client ID and Client Secret from the "Client ID for Web Applications" on the API Access page of your Google Console. Don't worry about the API Key field; it's not necessary as of now.
 +
# Each user wishing to log in using their Google account should go to '''Update Profile''', which can be found in the left menu when they are viewing their profile, and set the Google ID field to their GMail address.

Revision as of 01:18, 26 February 2013

Enabling Google Integration will let users synchronize their Google Calendars with content from their X2CRM user calendars. It will also allow them to log into X2CRM using their Google accounts.

Creating the API Project

To enable Google integration, you will first need to create a Google API project for your X2CRM installation by going to Google Console while logged into your Google account and clicking "Create Project". You should be directed to the Services tab, where you'll need to turn on the "Calendar" item by clicking on the toggle switch button next to its name and agreeing to the usage terms and conditions of the Calendar API. Then, creating the project proceeds as follows:

  1. Go to the API Access tab and click "Create an OAuth 2.0 client ID".
  2. Enter a product name. This is what users will see when they are prompted to allow the application to access their Google account.
  3. For the type of the application, select "Web Application."
  4. You should see a section entitled "Client ID for Web Applications". In that section, select "Edit Settings."
  5. In the Authorized Redirect URIs box, put in the following two URIs, replacing domain.name/uri with the domain name and web directory where X2CRM is installed:
http://domain.name/uri/index.php/calendar/syncActionsToGoogleCalendar
http://domain.name/uri/index.php/site/googleLogin

Configuring X2CRM

  1. In X2CRM, go to "Google Integration" under the System Settings section of the Admin page.
  2. Check the box to enable integration, and paste the Client ID and Client Secret from the "Client ID for Web Applications" on the API Access page of your Google Console. Don't worry about the API Key field; it's not necessary as of now.
  3. Each user wishing to log in using their Google account should go to Update Profile, which can be found in the left menu when they are viewing their profile, and set the Google ID field to their GMail address.