gws-gmail

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

gmail (v1)

gmail (v1)

PREREQUISITE: Read
../gws-shared/SKILL.md
for auth, global flags, and security rules. If missing, run
gws generate-skills
to create it.
bash
gws gmail <resource> <method> [flags]
前提条件: 阅读
../gws-shared/SKILL.md
了解认证、全局标志和安全规则。如果该文件缺失,请运行
gws generate-skills
来创建它。
bash
gws gmail <resource> <method> [flags]

Helper Commands

辅助命令

CommandDescription
+send
Send an email
+triage
Show unread inbox summary (sender, subject, date)
+watch
Watch for new emails and stream them as NDJSON
命令描述
+send
发送电子邮件
+triage
显示未读收件箱摘要(发件人、主题、日期)
+watch
监听新邮件并以NDJSON格式流式传输

API Resources

API资源

users

users

  • getProfile
    — Gets the current user's Gmail profile.
    • stop
      — Stop receiving push notifications for the given user mailbox.
    • watch
      — Set up or update a push notification watch on the given user mailbox.
    • drafts
      — Operations on the 'drafts' resource
    • history
      — Operations on the 'history' resource
    • labels
      — Operations on the 'labels' resource
    • messages
      — Operations on the 'messages' resource
    • settings
      — Operations on the 'settings' resource
    • threads
      — Operations on the 'threads' resource
  • getProfile
    — 获取当前用户的Gmail个人资料。
    • stop
      — 停止接收指定用户邮箱的推送通知。
    • watch
      — 为指定用户邮箱设置或更新推送通知监听。
    • drafts
      — 对“drafts”资源的操作
    • history
      — 对“history”资源的操作
    • labels
      — 对“labels”资源的操作
    • messages
      — 对“messages”资源的操作
    • settings
      — 对“settings”资源的操作
    • threads
      — 对“threads”资源的操作

Discovering Commands

探索命令

Before calling any API method, inspect it:
bash
undefined
在调用任何API方法之前,请先查看其详情:
bash
undefined

Browse resources and methods

浏览资源和方法

gws gmail --help
gws gmail --help

Inspect a method's required params, types, and defaults

查看方法的必填参数、类型和默认值

gws schema gmail.<resource>.<method>

Use `gws schema` output to build your `--params` and `--json` flags.
gws schema gmail.<resource>.<method>

使用`gws schema`的输出来构建你的`--params`和`--json`标志。