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

gsuite-sdk

bởi pabloalaniz

Web & Frontend Development
789Lượ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

Interact with Google Workspace APIs (Gmail, Calendar, Drive, Sheets) using gsuite-sdk.

Mô tả

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

Wraps Google Workspace APIs (Gmail, Calendar, Drive, Sheets) into a single Python SDK with a CLI. Handles OAuth token storage and refresh after first login. Works in scripts, agents, or from the command line.

Covers all four major Workspace services under one auth flow instead of wiring up each Google API client library separately.

Khi nào nên dùng

  • Read and search unread Gmail messages by sender or date
  • Create calendar events with attendees and notifications
  • Upload files to a specific Google Drive folder
  • Read spreadsheet ranges as dictionaries for data processing
  • Send emails with PDF attachments from automated scripts

Quy trình ví dụ

ĐẦU VÀO

User asks: show me unread emails from GitHub in the last 7 days

AGENT
  1. 1

    Check auth status with GoogleAuth().is_authenticated()

  2. 2

    Initialize Gmail client with the authenticated GoogleAuth instance

  3. 3

    Build a search query combining from_("notifications@github.com") and newer_than(days=7)

  4. 4

    Iterate results and print sender, subject, date, and body preview

ĐẦU RA

List of matching Gmail messages with sender, subject, date, and 200-char preview

Yêu cầu

  • GOOGLE_CREDENTIALS_FILE environment variable
  • credentials.json file downloaded from Google Cloud Console
  • Google Cloud project with OAuth 2.0 client configured for Workspace APIs

Cài đặt

clawhub install pabloalaniz/gsuite-sdk

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