Calendar List
bash execute.sh # next 7 days, primary calendar
bash execute.sh --from 2026-09-18T00:00:00Z --to 2026-09-19T00:00:00Z --max 20
bash execute.sh '{"calendarId":"team@group.calendar.google.com","from":"…","to":"…"}'
Parameters
| Name | Required | Meaning |
|---|---|---|
| --from (from) | no | ISO 8601 lower bound; default now |
| --to (to) | no | ISO 8601 upper bound; default now + 7 days |
| --calendar (calendarId) | no | Calendar id; default primary |
| --max (max) | no | Result cap, default 50, max 250 |
Output
{"count":2,"events":[{"id":"…","summary":"Standup","start":{"dateTime":"2026-09-18T09:00:00+08:00"},"end":{"dateTime":"…"},"attendees":[{"email":"ann@example.com","responseStatus":"accepted"}],"htmlLink":"https://…"}]}
Failures
{"success":false,"reason":"not_connected","hint":"<connect URL>"} (exit 1)
when the owner has not connected Google Workspace.
Choosing a Google account
Several Google accounts can be connected at once. Without --account the call uses the default one (the first you connected, or whichever the owner marked default). Name one explicitly when it matters:
bash execute.sh --account work@company.com ...
The account must be connected for this product — Google consent is per product (Gmail / Calendar / Drive), so an account connected only for Calendar cannot read Drive.