跳到主要内容
哒哒星球DADA PLANET

Skill · 已公开版本

gws-events-renew · 续期 Google Workspace 事件订阅

通过 gws events +renew 命令续期或重新激活 Google Workspace Events 订阅,可按名称续期单个订阅,或批量续期指定时间窗口内到期的订阅。

先看看示例

作者提供的示例,实际效果取决于你的输入和使用工具。

输入

批量续期未来两天内到期的 Workspace 事件订阅,避免订阅过期中断。

输出

预期交付:续期或重新激活后的订阅状态。(编辑说明,非实际运行结果)

方法说明

---
name: gws-events-renew
description: "Google Workspace Events: Renew/reactivate Workspace Events subscriptions."
metadata:
  version: 0.22.5
  openclaw:
    category: "productivity"
    requires:
      bins:
        - gws
    cliHelp: "gws events +renew --help"
---

# events +renew

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

Renew/reactivate Workspace Events subscriptions

## Usage

```bash
gws events +renew
```

## Flags

| Flag | Required | Default | Description |
|------|----------|---------|-------------|
| `--name` | — | — | Subscription name to reactivate (e.g., subscriptions/SUB_ID) |
| `--all` | — | — | Renew all subscriptions expiring within --within window |
| `--within` | — | 1h | Time window for --all (e.g., 1h, 30m, 2d) |

## Examples

```bash
gws events +renew --name subscriptions/SUB_ID
gws events +renew --all --within 2d
```

## Tips

- Subscriptions expire if not renewed periodically.
- Use --all with a cron job to keep subscriptions alive.

## See Also

- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth
- [gws-events](../gws-events/SKILL.md) — All subscribe to google workspace events commands