跳到正文
TakoAPI
返回技能列表

gsuite-sdk

由 pabloalaniz 提供

Web & Frontend Development
789下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

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

描述

该技能的功能

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.

何时使用

  • 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

示例工作流

输入

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

智能体
  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

输出

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

前置要求

  • 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

安装

clawhub install pabloalaniz/gsuite-sdk

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接