360 Secure SkillHub
360 安全技能中心

Gws Events

该 Skill 提供 gws events 命令行入口,用于操作 Google Workspace Events API:创建、查询、更新、删除与恢复事件订阅,并可通过辅助命令以 NDJSON 流式订阅事件、续订订阅;同时暴露长时操作轮询、任务查询与取消等方法。使用前需具备 gws 工具,并按共享文档完成认证与全局参数配置。

googleworkspace-bot
googleworkspace-bot
热度 77.34
最近更新 2026-05-11 17:28:46
分类:自动化依赖:代码执行 / 第三方 API应用场景:API 集成 / 工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add gws-events
Metadata
name
gws-events
description
Subscribe to Google Workspace events.
metadata
{"version":"0.22.5","openclaw":{"category":"productivity","requires":{"bins":["gws"]},"cliHelp":"gws events --help"}}

events (v1)

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.

gws events <resource> <method> [flags]

Helper Commands

Command Description
+subscribe Subscribe to Workspace events and stream them as NDJSON
+renew Renew/reactivate Workspace Events subscriptions

API Resources

message

  • stream — SendStreamingMessage is a streaming call that will return a stream of task update events until the Task is in an interrupted or terminal state.

operations

  • get — Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

subscriptions

tasks

  • cancel — Cancel a task from the agent. If supported one should expect no more task updates for the task.
  • get — Get the current state of a task from the agent.
  • subscribe — TaskSubscription is a streaming call that will return a stream of task update events. This attaches the stream to an existing in process task. If the task is complete the stream will return the completed task (like GetTask) and close the stream.
  • pushNotificationConfigs — Operations on the 'pushNotificationConfigs' resource

Discovering Commands

Before calling any API method, inspect it:

# Browse resources and methods
gws events --help

# Inspect a method's required params, types, and defaults
gws schema events.<resource>.<method>

Use gws schema output to build your --params and --json flags.