Webhooks with Google calendar API on Vercel

Looking for any general advice on listening to events from google calendar, in order to sync changes via the Google Calendar UI to my database. The calendar api is a bit different from how Stripe or Clerk does webhooks. You need to create a transient notification channel which needs to be renewed after an interval (e.g 1 day or 1 week). My initial thoughts are to just use a vercel cron job or similar to get the job done. Happy to take alternative suggestions though.
1 Reply
jingleberry
jingleberry2y ago
In case anyones interested I ended up implementing it. Used Upstash (QStash) instead of Vercel cron because Vercel's offering does not include security and eventually will be restricted to paying customers only Google Calendar notifications only inform you of a change. They don't include payloads so you'll need to make a separate request to get the updated state of whatever thing you're listening to
Want results from more Discord servers?
Add your server