To be able to push events to ur google calendar u need to specify credentials.json file.
In order to get a credentials file follow this steps:
- Go to Google Cloud Console [direct link] and create new project
- Select Navigation Menu ☰ > Solutions > All Products > Google Auth Platform [direct link]
- Press GET STARTED and fill up information. In Audience section select External. (doesn't matter what you put in). Press CREATE
- You should be redirected to Google Auth Platform page. From here select Clients > CREATE CLIENT [direct link]. In Application type select
Desktop app. Name it whatever you want. Press CREATE - In
Actionscolumn press Download OAuth client > DOWNLOAD JSON. Save it ascredentials.jsonat.creds/. Full path should beScheduler/creds/credentials.json - In Data Access press ADD OR REMOVE SCOPES > Enter
https://www.googleapis.com/auth/calendar. Enable it then press UPDATE. SAVE at the botton of the page. - Select Audience > ADD USERS > Type your email > SAVE
- Done
- Create virtual environment if needed
python -m venv venv - Install requirements
pip install -r requirements.txt - Run app
python main.py