SuperAPI AI 工具集

recipe-share-event-materials

办公与效率

查看项目

更新于 10-16 04:22

技能介绍

用途:将 Google Drive 中的文件共享给某个 Google 日历活动的所有参会者,适合会议、活动等场景下向与会人员统一分发资料。

前置条件:执行本技能前,需要先加载以下技能:gws-calendar、gws-drive。

主要步骤:

  1. 获取活动参会者:使用命令 gws calendar events get --params '{"calendarId": "primary", "eventId": "EVENT_ID"}'。
  2. 向每位参会者共享文件:使用命令 gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "attendee@company.com"}'。
  3. 验证共享结果:使用命令 gws drive permissions list --params '{"fileId": "FILE_ID"}' --format table。

适用场景:需要把会议或活动相关文件分发给全部参会者时。

限制:资料未提供关于权限范围、批量处理上限、错误处理方式及收费情况的说明,暂未提供。