Create a daily Event in Google Calendar to quickly link the Locations overview from Google Maps to the specific day.
Based on example code in https://developers.google.com/calendar/quickstart/python.
- Create API Key for use, see link.
- Connect to Google Calendar API, use
calendar.events
SCOPE for permissions.
- If this is the first time, you have to authorize the app using the browser login flow.
- After the first time, the credentials are pickled and kept in
token.pickle
, which can be re-used for future API calls.
- Create a new Event, inserting the link Locations into the event with the current date.
- Find out how long the token is valid.