Communityコーディング&開発github.com

Google Workspace イベント更新

Google Workspace イベントサブスクリプションを更新・再有効化します。

Google Workspace イベント更新 とは?

このスキルは、Google Workspace Events API を使用して、期限切れや無効化されたイベントサブスクリプションを更新または再有効化するために設計されています。主に Google Workspace の変更通知を継続的に受け取る必要がある環境で役立ちます。例えば、Google カレンダーや Gmail の変更イベント購読が期限切れになった場合、このスキルによってサブスクリプションを再アクティブ化し、データのリアルタイム同期を維持できます。対応プラットフォームとしては、Claude Code やカスタムエージェントを想定しており、Google Workspace 管理者権限を持つアカウントが必要です。このスキルは、サブスクリプションIDを指定して API を呼び出すことで動作し、有効期限の延長や状態のリセットを行います。開発者は、イベント駆動型の自動化ワークフローにおいて、サブスクリプション管理を効率化するためにこれを利用できます。

対応~Claude Code~Codex CLI~Cursor
Part ofReact
npx skills add https://github.com/googleworkspace/cli/tree/main/skills/gws-events-renew

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Google Workspace イベント更新 は何をしますか?

Google Workspace イベント: Workspace Events サブスクリプションを更新・再有効化します。

概要

このスキルは、Google Workspace のイベントサブスクリプション(例: Google カレンダー、Gmail、Google ドライブの変更通知)を更新または再有効化するために使用します。サブスクリプションが期限切れやエラー状態になった場合に、このスキルを使ってその状態をリセットし、継続的なイベント配信を再開できます。

前提条件

  • Google Workspace 管理者アカウントまたはサブスクリプションを管理する権限を持つアカウント
  • 有効な Google Cloud プロジェクトと、Google Workspace Events API が有効になっていること
  • OAuth 2.0 認証情報(クライアントIDとシークレット、またはサービスアカウントキー)

使用方法

# サブスクリプションの更新(例: 有効期限を延長)
claude code --skill googleworkspace/gws-events-renew --param subscriptionId="your-subscription-id"

パラメータ

パラメータ必須説明
subscriptionIdはい更新するサブスクリプションの ID
ttlいいえ新しい有効期限(秒単位)。デフォルトは7日間(604800秒)

アクション

このスキルは以下のアクションを実行します:

  1. 指定されたサブスクリプションIDを検証
  2. Google Workspace Events API の subscriptions.renew エンドポイントを呼び出し
  3. サブスクリプションの状態を ACTIVE に更新
  4. 新しい有効期限を設定(デフォルトまたは指定された ttl に基づく)

エラーハンドリング

  • サブスクリプションが見つからない場合: 404 Not Found エラーを返します。
  • サブスクリプションがすでに削除されている場合: 更新できません。新しく作成してください。
  • 権限不足の場合: 403 Forbidden エラーを返します。適切な管理者権限があることを確認してください。

注意事項

  • サブスクリプションの更新は、元の作成者と同じ OAuth スコープが必要です。
  • 更新後もイベントの配信が再開されるまでに数分かかることがあります。
  • サブスクリプションの有効期限は最長30日間です。必要に応じて定期的に更新してください。

関連リンク

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

googleworkspace/gws-admin-reports

Google Workspace Admin SDK: Audit logs and usage reports.

googleworkspace/gws-calendar

Google Calendar: Manage calendars and events.

googleworkspace/gws-calendar-agenda

Google Calendar: Show upcoming events across all calendars.

googleworkspace/gws-calendar-insert

Google Calendar: Create a new event.

googleworkspace/gws-chat

Google Chat: Manage Chat spaces and messages.

googleworkspace/gws-chat-send

Google Chat: Send a message to a space.

googleworkspace/gws-classroom

Google Classroom: Manage classes, rosters, and coursework.

googleworkspace/gws-docs

Read and write Google Docs.

googleworkspace/gws-docs-write

Google Docs: Append text to a document.

googleworkspace/gws-drive

Google Drive: Manage files, folders, and shared drives.

googleworkspace/gws-drive-upload

Google Drive: Upload a file with automatic metadata.

googleworkspace/gws-events

Subscribe to Google Workspace events.

googleworkspace/gws-events-subscribe

Google Workspace Events: Subscribe to Workspace events and stream them as NDJSON.

googleworkspace/gws-forms

Read and write Google Forms.

googleworkspace/gws-gmail

Gmail: Send, read, and manage email.

googleworkspace/gws-gmail-forward

Gmail: Forward a message to new recipients.

googleworkspace/gws-gmail-read

Gmail: Read a message and extract its body or headers.

googleworkspace/gws-gmail-reply

Gmail: Reply to a message (handles threading automatically).

googleworkspace/gws-gmail-reply-all

Gmail: Reply-all to a message (handles threading automatically).

googleworkspace/gws-gmail-send

Gmail: Send an email.

関連スキル