Categorize google calendar events from multiple communities
###Steps
-
Register for Google Developers Console and ontain an API key for your application. Follow these steps.
-
Download the client_secret file to application directory and rename it as client_secret.json
-
In step 1, we have set Redirect URI to https://localhost. The URI states where should the Google redirect the resource to complete authetication(good explanation can be found here). If you have node installed, you can start local web-server using following command
http-server
-
Update categories.json with appropriate data based on calendar IDs shared with you before running the code. Updates can be performed using Calendar.py
-
Execute ShareCalendar.py which will redirect you to webpage requesting authorization of your app. On confirmation, credentials for all future request will be stored at location ./.credentials/
-
Calendar.py also enables to search based on particular category, calendarID, search query, time frames, number of results, etc. By supplying appropriate paramters, required results can be fetched.