文档办公

recipe-batch-invite-to-event

googleworkspace/cli

Add a list of attendees to an existing Google Calendar event and send notifications.

  • 3万 次安装
  • 3.2万 星标
  • 收录于

安装命令

npx skills add https://github.com/googleworkspace/cli --skill recipe-batch-invite-to-event

要点

Batch-add attendees to Google Calendar events with automatic notifications.

  • Requires the gws-calendar skill and gws binary to execute
  • Workflow includes three steps: retrieve the event, patch attendees with sendUpdates: "all" to notify participants, and verify the update
  • Supports adding multiple attendees in a single operation by passing an array of email addresses

SKILL.md

Add Multiple Attendees to a Calendar Event

PREREQUISITE: Load the following skills to execute this recipe: gws-calendar

Add a list of attendees to an existing Google Calendar event and send notifications.

Steps

  1. Get the event: gws calendar events get --params '{"calendarId": "primary", "eventId": "EVENT_ID"}'
  2. Add attendees: gws calendar events patch --params '{"calendarId": "primary", "eventId": "EVENT_ID", "sendUpdates": "all"}' --json '{"attendees": [{"email": "alice@company.com"}, {"email": "bob@company.com"}, {"email": "carol@company.com"}]}'
  3. Verify attendees: gws calendar events get --params '{"calendarId": "primary", "eventId": "EVENT_ID"}'