What's My Schedule retrieves your event schedule from the Google Calendar API by verifying the binary using OAuth Credentials. To set up WMS you will have to create and retrieve API credentials to authenticate an OAuth flow.
- Create a New Project in the Google Developer Console
- Enable the Google Calendar API for this project
- Create a new OAuth Consent Screen
- Select type:
external
- Enter the following required fields:
- App name e.g.
wms-cli
- User support email e.g.
ex@gmail.com
- Developer contact email address e.g.
ex@gmail.com
- App name e.g.
- Save and Continue to
Scopes
- Add the following scopes:
/auth/calendar.calendarlist.readonly
non-sensitive scope/auth/calendar.readonly
sensitive scope/auth/calendar.events.readonly
sensitive scope
- Save and Continue to
Summary
- Add your email under
Test users
- Select type:
- Create OAuth Client Credentials
- Application type:
Desktop App
- Save your
Client ID
andClient Secret
- Application type:
- Download the binary for your machine from the
release
section - Add the
wms
binary to your path, I recommend/usr/local/bin
- Run
wms init <client-id> <client-secret>
You're ready to go! Run wms
to get today's calendar!