recipe-watch-drive-changes
bởi Google
Đăng ký nhận thông báo thay đổi trên một tệp hoặc thư mục Google Drive.
npx skills add https://github.com/googleworkspace/cli --skill recipe-watch-drive-changesWatch for Drive Changes
PREREQUISITE: Load the following skills to execute this recipe:
gws-events
Subscribe to change notifications on a Google Drive file or folder.
Steps
- Create subscription:
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}}' - List active subscriptions:
gws events subscriptions list - Renew before expiry:
gws events +renew --subscription SUBSCRIPTION_ID
Thêm skills từ Google
gws-modelarmor-sanitize-response
Google
Google Model Armor: Làm sạch phản hồi của mô hình thông qua một mẫu Model Armor.
gws-people
Google
Quản lý danh bạ và hồ sơ.
gws-shared
Google
gws CLI: Các mẫu dùng chung cho xác thực, cờ toàn cục và định dạng đầu ra.
gws-sheets
Google
Google Sheets: Đọc và ghi bảng tính.
gws-sheets-append
Google
Google Sheets: Thêm một hàng vào bảng tính.
gws-sheets-read
Google
Google Sheets: Đọc giá trị từ một bảng tính.
gws-slides
Google
Google Slides: Đọc và viết bài thuyết trình.
gws-tasks
Google
Google Tasks: Quản lý danh sách tác vụ và tác vụ.