CLI 命令

Webhooks

openclaw webhooks

Webhook 辅助命令和集成(Gmail Pub/Sub、webhook 辅助命令)。

相关内容:

Gmail

openclaw webhooks gmail setup --account [email protected]
openclaw webhooks gmail run

webhooks gmail setup

配置 Gmail watch、Pub/Sub 和 OpenClaw webhook 投递。

必需项:

  • --account <email>

选项:

  • --project <id>
  • --topic <name>
  • --subscription <name>
  • --label <label>
  • --hook-url <url>
  • --hook-token <token>
  • --push-token <token>
  • --bind <host>
  • --port <port>
  • --path <path>
  • --include-body
  • --max-bytes <n>
  • --renew-minutes <n>
  • --tailscale <funnel|serve|off>
  • --tailscale-path <path>
  • --tailscale-target <target>
  • --push-endpoint <url>
  • --json

示例:

openclaw webhooks gmail setup --account [email protected]
openclaw webhooks gmail setup --account [email protected] --project my-gcp-project --json
openclaw webhooks gmail setup --account [email protected] --hook-url https://gateway.example.com/hooks/gmail

webhooks gmail run

运行 gog watch serve 以及 watch 自动续期循环。

选项:

  • --account <email>
  • --topic <topic>
  • --subscription <name>
  • --label <label>
  • --hook-url <url>
  • --hook-token <token>
  • --push-token <token>
  • --bind <host>
  • --port <port>
  • --path <path>
  • --include-body
  • --max-bytes <n>
  • --renew-minutes <n>
  • --tailscale <funnel|serve|off>
  • --tailscale-path <path>
  • --tailscale-target <target>

示例:

openclaw webhooks gmail run --account [email protected]

有关端到端设置流程和操作细节,请参阅 Gmail Pub/Sub documentation

相关内容