recipe-find-free-time

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Find Free Time Across Calendars

跨日历查找空闲时间

PREREQUISITE: Load the following skills to execute this recipe:
gws-calendar
Query Google Calendar free/busy status for multiple users to find a meeting slot.
前提条件: 加载以下技能以执行此方案:
gws-calendar
查询多位用户的Google Calendar忙闲状态,以找到合适的会议时段。

Steps

步骤

  1. Query free/busy:
    gws calendar freebusy query --json '{"timeMin": "2024-03-18T08:00:00Z", "timeMax": "2024-03-18T18:00:00Z", "items": [{"id": "user1@company.com"}, {"id": "user2@company.com"}]}'
  2. Review the output to find overlapping free slots
  3. Create event in the free slot:
    gws calendar +insert --summary 'Meeting' --attendees user1@company.com,user2@company.com --start '2024-03-18T14:00:00' --duration 30
  1. 查询忙闲状态:
    gws calendar freebusy query --json '{"timeMin": "2024-03-18T08:00:00Z", "timeMax": "2024-03-18T18:00:00Z", "items": [{"id": "user1@company.com"}, {"id": "user2@company.com"}]}'
  2. 查看输出结果以找到重叠的空闲时段
  3. 在空闲时段创建会议:
    gws calendar +insert --summary 'Meeting' --attendees user1@company.com,user2@company.com --start '2024-03-18T14:00:00' --duration 30