nylas 联系人组列表(开发者)— 快速参考

发布: (2026年4月22日 GMT+8 01:23)
2 分钟阅读
原文: Dev.to

Source: Dev.to

概览

nylas contacts groups list 会显示地址簿中所有的联系人组(Google)或类别(Outlook)。每条记录会展示组名、ID 和成员数量。该命令可跨多个提供商使用——Google Contacts(People API)、Outlook(Microsoft Graph)以及 Exchange(EWS)——为 CLI 提供统一的联系人管理接口。

用法

nylas contacts groups list [--json]
  • --json – 以 JSON 格式输出结果,便于机器读取处理(例如,管道传输给 jq)。

运行帮助命令以查看所有可用标志:

nylas contacts groups list --help

示例

列出所有联系人组

nylas contacts groups list

以 JSON 统计每个组的联系人数量

nylas contacts groups list --json | jq '.[] | {name, member_count}'

注意: 如果未返回任何组,组成员计数将显示为 0

参考资料

  • 完整文档:nylas contacts groups list reference – 包含所有标志、进阶示例和故障排除。
  • 所有命令:Nylas CLI Command Reference
  • 入门指南:brew install nylas/nylas-cli/nylas(其他安装方式也可用)。
0 浏览
Back to Blog

相关文章

阅读更多 »