Here’s the reformatted information from the Cleanly documentation on Google Calendar integration:
Google Calendar Integration with Cleanly Booking 🗓️
The Google Calendar API is a developer tool that allows applications to integrate with Google Calendar’s features. This includes programmatically creating, accessing, and managing calendar events, as well as setting notifications, permissions, and real-time updates.
To enable automated event creation in Google Calendar upon customer booking confirmations, you need to obtain a Client ID and Client Secret from the Google Cloud Console and configure them in your Cleanly Booking settings.
Step-by-Step Guide to Get Client ID and Client Secret:
- Create a New Project in Google API Console
- Go to the Google API Console.
- Create a new project, providing a project name and selecting a location.
- Enable the Google Calendar API
- Navigate to the Google API Library.
- Search for “Google Calendar API”.
- Enable it for your newly created project.
- Create OAuth 2.0 Client ID Credentials
- After enabling the API, go to “Credentials” in the left sidebar.
- Click “Create Credentials” and select “OAuth 2.0 Client ID”.
- Configure Consent Screen (If Prompted)
- If this is your first time, you’ll need to configure the OAuth consent screen.
- Choose a User Type (External or Internal). For most Cleanly integrations, “External” is appropriate.
- Fill in required app information like App Name and a User Support Email.
- Add your Authorized Domains where your application is hosted (e.g., your website’s domain).
- Provide the developer’s contact information.
- Add Scopes. You will need to add relevant scopes for Google Calendar access. The documentation mentions “sensitive” and “non-sensitive” scopes.
- For external apps, add email addresses of Test Users for testing before publishing your app.
- Review the Summary of all entered details.
- Finalize OAuth 2.0 Client ID Creation
- Go back to APIs & Services > Credentials.
- Click “Create Credentials” again and select “OAuth 2.0 Client ID”.
- Choose “Web application” as the application type.
- Provide a name for your OAuth client ID.
- Add your Authorized Redirect URIs. These are the URLs where Google will send the user after they grant permission (e.g., a specific page on your Cleanly setup that handles the callback). The Cleanly documentation implies this is handled by the plugin, so specific URIs might be provided by Cleanly’s instructions within your dashboard.
- Retrieve Client ID and Client Secret
- After creation, a pop-up will display your Client ID and Client Secret.
- Store these securely as they are crucial for your integration.
Integrating with Cleanly Booking Plugin:
- Access Cleanly Booking Settings
- In your WordPress admin panel, navigate to “Settings” under “Cleanly Booking.”
- Go to Integration Section
- Click on the “Integration” tab.
- Configure Google Calendar API Settings
- Find the “Google Calendar API Settings” section.
- Paste your retrieved Client ID and Client Secret into the respective fields.
- Click “Connect with Google” to authorize the connection.
- Save all changes.
Once this setup is complete, whenever a customer confirms a booking through Cleanly, an event will be automatically created in your Google Calendar, complete with all the booking details. This streamlines your booking management process.