Google Settings
To enable Google Integrations, ABNERP needs access to the API through which the data will be synced which is achieved using OAuth 2.0 Authentication Protocol.
How to set up Google Settings
For Google Calendar, Google Contacts, Google Drive and Google Indexing
In order to allow a synchronization with any of the above mentioned services, you need to authorize ABNERP to get data from Google. Following is an example for setting up Google Contacts Integration
-
Enable API Access in API Library for the Integration you wish to integrate.
- Google Calendar: Calendar API
- Google Contacts: People API
- Google Drive: Drive API
-
In API & Services \u003e Credentials create a new Credential and select Create OAuth client ID
-
Select Application Type Web Application
-
Add
https://{yoursite}to Authorized JavaScript origins. -
Add
https://{yoursite}?cmd=frappe.integrations.doctype.google_calendar.google_calendar.google_callbackas an authorized redirect URI for Google Calendar. -
Add
https://{yoursite}/api/method/frappe.integrations.google_oauth.callbackas an authorized redirect URI for rest of the services. -
Add your Client ID and Client Secret in the Google Settings in Home \u003e Integrations \u003e Google Services \u003e Google Settings
For Google Maps
\u003e Setting the API Key is only required if you want to use the Directions API, for example in ABNERP's Delivery Trip. For the other features, this is not required. \u003e \u003e
In order to allow a synchronization with Google Maps you need to generate an API key as Google Maps doesn't need access to data from Google.
- Create a new project on Google Cloud Platform and generate new API Key.