You can get your Google calendar API keys using your google account by authorizing It. To get your own Google Calendar API Credential you need to follow step by step guide explained below:
Step 1 – Open to Google APIs Console using this link- https://console.developers.google.com/apis
Step 2 – Login to Google API Console using your Google account
Step 3 – After login, you are redirected to Google APIs Dashboard. Here you need to enable Google Calendar API. Click on “ENABLE API AND SERVICES” link to enable it. This will redirect you to all Google APIs list page. Here in the search bar, type the “Google Calendar. It will filter or search the result as below screenshot. Click on the first result item which is Google Calendar API.
Step 4 – After selecting the API result this will show a button to enable it hit that button.
Step 5 – You need to create a project to use or enable any Google APIs. It will redirect you to project creation page, where you need to create a project. Click on “Create” button.
Provide a Project Name like – Appointment Scheduler Pro same as below screenshot, you can specify the project name on your own. We are creating this client id and secret key to use for Appointment Scheduler Pro plugin that’s why we named the project with the same name as the plugin.
Now, after project created successfully, you can enable Google Calendar API.
Step 6 – Now, we will generate the API credentials. Click on Credentials link or after enabling calendar API you will automatically redirect to the credential page. Follow the below screenshots.
Select OAuth Client ID for access type
To get the OAuth Client ID you need to set up a consent screen, this screen will be displayed at the time where you will be authorized to Google Calendar API using Client ID and Client Secret. Click on “Configure Consent Screen” button to setup.
Here we setting content screen for Appointment Scheduler Pro project using the screenshot.
After setting up consent screen, select the “Web Application” option form the given list of application type. And fill the form as screenshot added below
a) Type – Web Application
b) Name – Appointment Scheduler Pro (you can add your application name here for which you generating the API keys)
c) Redirect URIs – http://localhost/premium/wp-admin/admin.php?page=ap_system (you will find this URL into your application dashboard where you fill client id and secret id)
Hit the Create button and you will find your Google Calendar client id and client secret in pop up windows.
Now, you can copy and use these credentials in any application to sync your Google Calendar with the supported application.
Thanks for reading our article, if you have any query or confusion regarding any step you can post comments on the post. Also, your feedback is appreciated to make this post readability easier.
It is really good, followed each step it working as mentioned here. Thank your valuable time.