Google Calendar (2-Way Sync)
If you enable “Google Calendar”, your employees can enable their profiles to synchronize with their google calendars. Which means, appointments that are booked with an employee, appear that employee google calendar. There is also one plus: if your employee has an event in his/her google calendar, our plugin removes that event’s time range from that employee’s availability time while booking process.
How to start to sync google calendar?
- You must create a project in “Google Developers Console“
- Enable Google Calendar API if it is not already enabled by clicking on the “Enable APIs and services” button.
- Search for “Google Calendar API”.
- Click on it, and then click on the “Enable” button.
- Go back to Google Developers Console and create a new project. To create a new project, click on the “Select a project” dropdown menu.
- This will open the select project window. Click on the “New project” button to create your new project.
- Provide a name for your project and click on the “Create” button
- Now click on the “Select a project” dropdown menu, select the “All” tab, and open your newly created project.
- Under the “Credentials” section, click on the “Create credentials” button and then “Help me choose”.
- After that choose the below options:
- Which API are you using? – Google Calendar API
- Where will you be calling the API from? – Web browser (Javascript)
- What data will you be accessing? – User Data
Then, click “What credentials do I need?” button.
- At the next step, give the “Name” of your OAuth client ID. In the “Authorized Redirect URIs” field, enter the URL from “Redirect URI” field. You can find the “Redirect URI” field in “Google Calendar Settings” dialog on Bookmify Settings page. After that click on “Create OAuth client ID” button.
- Click on the “Done” button. After that, select your recently created OAuth client IDs.
- Copy and paste “Client ID” and “Client Secret” into related fields in “Google Calendar” settings dialog in Bookmify->Settings. After that, your employee (if he/she has access to the WordPress dashboard) will be able to connect Google Calendar with his/her profile.
How to sync google calendar with employee profile?
- Your employee should log-in his/her profile via your dashboard (wp-admin) with given login and password. (These credentials are sent when you create a new employee with WordPress user option selected.)
- Under his/her profile picture, there is a “Google Profile” option. He/She should click “Authentification” link.
- That link redirects to “Sign in with Google” page. Your employee should choose his google profile to link with bookmify and click “allow” button at the next step.
Now, all (new) appointments related to that employee appear on his/her google calendar.