gws-gmail
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesegmail (v1)
gmail (v1)
PREREQUISITE: Readfor auth, global flags, and security rules. If missing, run../gws-shared/SKILL.mdto create it.gws generate-skills
bash
gws gmail <resource> <method> [flags]前提条件: 阅读了解认证、全局标志和安全规则。如果该文件缺失,请运行../gws-shared/SKILL.md来创建它。gws generate-skills
bash
gws gmail <resource> <method> [flags]Helper Commands
辅助命令
| Command | Description |
|---|---|
| Send an email |
| Show unread inbox summary (sender, subject, date) |
| Watch for new emails and stream them as NDJSON |
| 命令 | 描述 |
|---|---|
| 发送电子邮件 |
| 显示未读收件箱摘要(发件人、主题、日期) |
| 监听新邮件并以NDJSON格式流式传输 |
API Resources
API资源
users
users
- — Gets the current user's Gmail profile.
getProfile- — Stop receiving push notifications for the given user mailbox.
stop - — Set up or update a push notification watch on the given user mailbox.
watch - — Operations on the 'drafts' resource
drafts - — Operations on the 'history' resource
history - — Operations on the 'labels' resource
labels - — Operations on the 'messages' resource
messages - — Operations on the 'settings' resource
settings - — Operations on the 'threads' resource
threads
- — 获取当前用户的Gmail个人资料。
getProfile- — 停止接收指定用户邮箱的推送通知。
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
undefinedBrowse 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`标志。