This is an attempt to demonstrate one could use the google calendar api client in Kotlin. It was written with the Warszawa Sacala Users Group
We leave out the most complicated part, which is getting the OAuth2 refresh token. It was decided that another part of the system would do this. See #4 below.
- Install the kotlin plugin for intellij
- Install the kobalt plugin for intellij
- Import the project as a kobalt project into intellij
- Use some other means (eg. the google api quickstart) to obtain a refresh token https://developers.google.com/google-apps/calendar/quickstart/java
- Update these vals in HomeMade.kt with info from step 4
- CLIENT_ID
- CLIENT_SECRET
- REFRESH_TOKEN
- Run