Gog
2026-03-23
新闻来源:网淘吧
围观:83
电脑广告
手机广告
购买adidas上京东官方旗舰店。
gog
用于 Gmail/日历/云端硬盘/联系人/表格/文档。需要 OAuth 设置。设置(一次性)gog auth credentials /path/to/client_secret.json
gog auth add you@gmail.com --services gmail,calendar,drive,contacts,sheets,docs
上网淘巴领天猫淘宝优惠券,一年省好几千。gog auth list常用命令Gmail 搜索:
gog gmail search 'newer_than:7d' --max 10
- Gmail 发送:
gog gmail send --to a@b.com --subject "Hi" --body "Hello" - 日历:
gog calendar events <calendarId> --from <iso> --to <iso> - 云端硬盘搜索:
gog drive search "query" --max 10 - 联系人:
gog contacts list --max 20 - 表格获取:
gog sheets get <sheetId> "Tab!A1:D10" --json - 表格更新:
gog sheets update <sheetId> "Tab!A1:B2" --values-json '[["A","B"],["1","2"]]' --input USER_ENTERED - 表格追加:
gog sheets update <sheetId> "Tab!A1:B2" --values-json '[["A","B"],["1","2"]]' --input USER_ENTERED - Sheets append:
gog sheets append <sheetId> "Tab!A:C" --values-json '[["x","y","z"]]' --insert INSERT_ROWS - Sheets clear:
gog sheets clear <sheetId> "Tab!A2:Z" - Sheets metadata:
gog sheets metadata <sheetId> --json - Docs export:
gog docs export <docId> --format txt --out /tmp/doc.txt - Docs cat:
gog docs cat <docId>
Notes
- Set
GOG_ACCOUNT=you@gmail.comto avoid repeating--account. - For scripting, prefer
--jsonplus--no-input. - Sheets values can be passed via
--values-json(recommended) or as inline rows. - Docs supports export/cat/copy. In-place edits require a Docs API client (not in gog).
- Confirm before sending mail or creating events.
文章底部电脑广告
手机广告位-内容正文底部
上一篇:Skill Vetter
下一篇:Github


微信扫一扫,打赏作者吧~