recipe-batch-invite-to-event

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

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.
前提条件: 加载以下技能以执行此方案:
gws-calendar
向现有的Google Calendar活动中添加参会者列表并发送通知。

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"}'
  1. 获取活动:
    gws calendar events get --params '{"calendarId": "primary", "eventId": "EVENT_ID"}'
  2. 添加参会者:
    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. 验证参会者:
    gws calendar events get --params '{"calendarId": "primary", "eventId": "EVENT_ID"}'