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

xferops-gog

bởi parker-xferops

Web & Frontend Development
328Lượt tải do clawskills.sh công bố
0Lượ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

Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.

Mô tả

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

Command-line interface for Google Workspace services including Gmail, Calendar, Drive, Contacts, Sheets, and Docs. Requires a one-time OAuth setup with a Google Cloud client secret. Supports scripting with JSON output and stdin piping.

Replaces fragile browser automation or custom OAuth code with a single binary that covers all major Google Workspace APIs from the terminal.

Khi nào nên dùng

  • Search inbox and read email bodies from a script
  • Create and update calendar events with color coding
  • Read and write Google Sheets data in automation pipelines
  • Download Gmail attachments to local paths
  • Export Google Docs to plain text for processing

Quy trình ví dụ

ĐẦU VÀO

User asks: find emails from ryanair.com in the last 7 days and save any attachments

AGENT
  1. 1

    Run gog gmail messages search 'in:inbox from:ryanair.com newer_than:7d' --max 20 --json to list matching messages

  2. 2

    Parse message IDs from the JSON output

  3. 3

    For each message, run gog gmail get <MESSAGE_ID> --json to retrieve attachment metadata

  4. 4

    Run gog gmail attachment <messageId> <attachmentId> --out /tmp/ryanair/ for each attachment found

ĐẦU RA

Attachments saved to /tmp/ryanair/ for all matching emails

Yêu cầu

  • Google Cloud project with OAuth 2.0 client credentials (client_secret.json)
  • Google account with access to the Workspace services you want to use

Cài đặt

clawhub install parker-xferops/xferops-gog

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