To enable Google Integrations, OneOfficeERP needs access to the API through which the data will be synced which is achieved using OAuth 2.0 Authentication Protocol.
In order to allow a synchronization with Google Calendar, Google Contacts or Google Drive you need to authorize OneOfficeERP to get data from Google. Following is an example for setting up Google Contacts Integration
2. Enable API Access in API Library for the Integration you wish to integrate.
3. In API & Services > Credentials create a new Credential and select Create OAuth client ID
4. Select Application Type Web Application
5. Add https://{yoursite}
to Authorized JavaScript origins.
6. Add https://{yoursite}?cmd=frappe.integrations.doctype.{integration_name}.{integration_name}.google_callback
as an authorized redirect URI.
integration_name
with one of the following:https://{yoursite}?cmd=frappe.integrations.doctype.google_contacts.google_contacts.google_callback
7. Add your Client ID and Client Secret in the Google Settings in Home > Integrations > Google Services > Google Settings
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.