Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

google-calendar

bởi adrianmiller99

Calendar & Scheduling
10.4kLượt tải do clawskills.sh công bố
11Sao
18Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Interact with Google Calendar via the Google Calendar.

Mô tả

Kỹ năng này làm gì

Wraps the Google Calendar REST API to list, create, update, and delete calendar events from the command line or automated scripts. Credentials are stored as environment variables and authentication uses OAuth 2.0 refresh tokens. Works headless, no browser or GUI required at runtime.

Runs headless on servers and in CI pipelines where a browser-based calendar UI is not available.

Khi nào nên dùng

  • Listing today's meetings before a standup call
  • Creating a calendar event from a task automation script
  • Bulk-deleting cancelled appointments by event ID
  • Checking what's scheduled across a specific date range
  • Adding attendees and a location to a new event programmatically

Quy trình ví dụ

ĐẦU VÀO

User asks: Schedule a team sync tomorrow at 2pm with alice@example.com and bob@example.com

AGENT
  1. 1

    Reads GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, and GOOGLE_REFRESH_TOKEN from environment

  2. 2

    Refreshes the OAuth access token using the stored refresh token

  3. 3

    Calls google-calendar add --title "Team sync" --start <ISO> --end <ISO> --attendees alice@example.com,bob@example.com

  4. 4

    Google Calendar API creates the event and returns event metadata as JSON

  5. 5

    Prints the JSON payload including the new event ID to stdout

ĐẦU RA

JSON object with event ID, title, start/end times, and attendee list

Yêu cầu

  • Google Cloud project with the Google Calendar API enabled
  • OAuth 2.0 Desktop app credentials (client ID and client secret) from Google Cloud Console
  • GOOGLE_REFRESH_TOKEN obtained by running the provided auth helper script and completing the OAuth consent flow
  • GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, GOOGLE_REFRESH_TOKEN set via `openclaw secret set`

Cài đặt

clawhub install adrianmiller99/google-calendar

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết