SuperAPI AI 工具集

recipe-watch-drive-changes

办公与效率

查看项目

更新于 10-16 09:59

技能介绍

用途:为 Google Drive 中的文件或文件夹订阅变更通知,便于在内容更新时收到事件。执行前需先加载 gws-events 技能。

主要能力:创建订阅、查看活跃订阅、在到期前续订订阅。

使用方式:创建订阅时使用命令 gws events subscriptions create --json '{"targetResource": "//drive.googleapis.com/drives/DRIVE_ID", "eventTypes": ["google.workspace.drive.file.v1.updated"], "notificationEndpoint": {"pubsubTopic": "projects/PROJECT/topics/TOPIC"}, "payloadOptions": {"includeResource": true}}'。列出活跃订阅使用 gws events subscriptions list。续订使用 gws events +renew --subscription SUBSCRIPTION_ID。

适用场景:需要跟踪 Drive 文件或文件夹更新并触发后续处理时。

限制:需具备 gws-events 技能及相应 Google Workspace 环境配置;其余细节暂未提供。