Skip to content

Latest commit

 

History

History
73 lines (48 loc) · 2.87 KB

google.md

File metadata and controls

73 lines (48 loc) · 2.87 KB

Google Calendar API

see https://developers.google.com/calendar/caldav/v2/guide

grafik.png

grafik.png

Configure consent screen

  • UserType external

grafik.png

  • for Application Name use ioBroker.webCal
  • choose your email adress for support and developer contact

grafik.png

  • click save three times
  • click back to dasboard
  • Set publishing to production

grafik.png

Click on "+ create Credentials" and add new OAuth Client ID

grafik.png

  • type Webapplication
  • name ioBroker.webCal
  • Authorized redirect URIs: https://developers.google.com/oauthplayground
  • click on "Create" and download JSON in next screen

grafik.png

  • Click Library on the side menu
  • search for "webdav" and click on result tile

grafik.png

  • Click Enable to enable the calDAV API.

grafik.png

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.

grafik.png

  • click close

  • Under Step 1 on left side search for Google Calendar and click on
    https://www.googleapis.com/auth/calendar and https://www.googleapis.com/auth/calendar.events
    grafik.png

  • click on Authorize API's

    • now you have to accept and trust yourself.... (perhaps you have to click on advanced)

    • grafik.png

      grafik.png

  • Click Button Exchange authorization code for tokens on Step 2
    grafik.png

  • 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)