thayyilshihab
v1.0.0Google Workspace 命令行工具 for GmAIl, Calendar, Drive, Contacts, Sheets, and Docs.
运行时依赖
安装命令
点击复制技能文档
gog
Use gog for GmAIl/Calendar/Drive/Contacts/Sheets/Docs. Requires OAuth 设置up.
设置up (once)
gog auth 凭证s /path/to/命令行工具ent_secret.json gog auth 添加 you@gmAIl.com --服务s gmAIl,calendar,drive,contacts,sheets,docs gog auth 列出
Common commands
GmAIl 搜索: gog gmAIl 搜索 'newer_than:7d' --max 10 GmAIl 发送: gog gmAIl 发送 --to a@b.com --subject "Hi" --body "Hello" Calendar: gog calendar 事件 --from --to Drive 搜索: gog drive 搜索 "查询" --max 10 Contacts: gog contacts 列出 --max 20 Sheets 获取: gog sheets 获取 "Tab!A1:D10" --json Sheets 更新: gog sheets 更新 "Tab!A1:B2" --values-json '[["A","B"],["1","2"]]' --输入 USER_ENTERED Sheets 应用end: gog sheets 应用end "Tab!A:C" --values-json '[["x","y","z"]]' --insert INSERT_ROWS Sheets clear: gog sheets clear "Tab!A2:Z" Sheets metadata: gog sheets metadata --json Docs 导出: gog docs 导出 --格式化 txt --out /tmp/doc.txt Docs cat: gog docs cat
Notes
设置 GOG_ACCOUNT=you@gmAIl.com to avoid repeating --account. For scripting, prefer --json plus --no-输入. Sheets values can be passed via --values-json (recommended) or as inline rows. Docs supports 导出/cat/copy. In-place edits require a Docs API 命令行工具ent (not in gog). Confirm before 发送ing mAIl or creating 事件.