Skip to main content

Crate nexo_poller_google_calendar

Crate nexo_poller_google_calendar 

Source
Expand description

Google Calendar v3 events incremental sync poller.

Cursor stores the nextSyncToken Google returns. First tick fetches a window with timeMin = now, captures the nextSyncToken, dispatches nothing. Subsequent ticks pass syncToken = <cursor> and dispatch only the diff. Token expiry (HTTP 410 / invalid_grant) → Permanent error so the operator runs agent pollers reset <id> to re-baseline.

Ported from nexo-poller::builtins::google_calendar (V1) during Phase 96. OAuth client + token refresh happen inside this subprocess; the daemon hands credential file paths over via host.credentials_get("google") (Phase 96.7 reverse-RPC).

Structs§

CalendarJobConfig
DeliverCfg
GoogleCalendarHandler
One Google OAuth client per account_id. Shared across ticks for the same agent so token refreshes amortise.