see https://developers.google.com/calendar/caldav/v2/guide
- SignIn on https://console.developers.google.com/projectselector/apis/credentials
- Click on create a project
Configure consent screen
- UserType external
- for Application Name use
ioBroker.webCal
- choose your email adress for support and developer contact
- click save three times
- click back to dasboard
- Set publishing to production
Click on "+ create Credentials" and add new OAuth Client ID
- type Webapplication
- name
ioBroker.webCal
- Authorized redirect URIs:
https://developers.google.com/oauthplayground
- click on "Create" and download JSON in next screen
- Click Library on the side menu
- search for "webdav" and click on result tile
- Click Enable to enable the calDAV API.
Open OAuth 2.0 Playground
- click OAuth 2.0 Configuration button in the Right top corner.
- Select
Use your own OAuth credentials
in the bottom and provide the Client ID and Client Secret values from JSON file.
-
click close
-
Under Step 1 on left side search for Google Calendar and click on
https://www.googleapis.com/auth/calendar
andhttps://www.googleapis.com/auth/calendar.events
-
click on Authorize API's
-
Click
Button Exchange authorization code for tokens
on Step 2
-
here we need the refresh-token
Use the following settings in ioBroker
- auth Methold = google
- Secret = Client Secret (from JSON file)
- refresh token = which you get from above
- client ID = your clientID (from JSON file)