recipe-watch-drive-changes
por Google
Suscribirse a notificaciones de cambios en un archivo o carpeta de 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
Más skills de Google
gws-modelarmor-sanitize-response
Google
Google Model Armor: Sanitizar una respuesta del modelo a través de una plantilla de Model Armor.
gws-people
Google
Google People: Administrar contactos y perfiles.
gws-shared
Google
CLI de gws: Patrones compartidos para autenticación, banderas globales y formato de salida.
gws-sheets
Google
Google Sheets: Leer y escribir hojas de cálculo.
gws-sheets-append
Google
Google Sheets: Añadir una fila a una hoja de cálculo.
gws-sheets-read
Google
Google Sheets: Leer valores de una hoja de cálculo.
gws-slides
Google
Google Slides: Leer y escribir presentaciones.
gws-tasks
Google
Google Tasks: Administrar listas de tareas y tareas.