gws-people by googleworkspace/cli
npx skills add https://github.com/googleworkspace/cli --skill gws-people前提条件: 阅读
../gws-shared/SKILL.md以了解身份验证、全局标志和安全规则。如果该文件缺失,请运行gws generate-skills来创建它。
gws people <resource> <method> [flags]
batchGet — 通过指定联系人组资源名称列表,获取经过身份验证的用户拥有的联系人组列表。create — 为经过身份验证的用户创建一个新的联系人组。创建的联系人组名称在用户的联系人组中必须是唯一的。尝试创建具有重复名称的组将返回 HTTP 409 错误。为避免增加延迟和失败,应顺序发送同一用户的变更请求。delete — 通过指定联系人组资源名称,删除经过身份验证的用户拥有的现有联系人组。为避免增加延迟和失败,应顺序发送同一用户的变更请求。get — 通过指定联系人组资源名称,获取经过身份验证的用户拥有的特定联系人组。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
list — 列出经过身份验证的用户拥有的所有联系人组。联系人组的成员信息不会被填充。update — 更新经过身份验证的用户拥有的现有联系人组的名称。更新后的联系人组名称在用户的联系人组中必须是唯一的。尝试创建具有重复名称的组将返回 HTTP 409 错误。为避免增加延迟和失败,应顺序发送同一用户的变更请求。members — 对 'members' 资源的操作copyOtherContactToMyContactsGroup — 将“其他联系人”复制为用户“我的联系人”组中的新联系人。为避免增加延迟和失败,应顺序发送同一用户的变更请求。list — 列出所有“其他联系人”,即不在任何联系人组中的联系人。“其他联系人”通常是从交互中自动创建的联系人。同步令牌在完全同步 7 天后过期。使用过期同步令牌的请求将收到一个带有 google.rpc.ErrorInfo 的错误,原因为 "EXPIRED_SYNC_TOKEN"。如果发生此类错误,客户端应执行不带 sync_token 的完全同步请求。search — 提供经过身份验证的用户的其他联系人中与搜索查询匹配的联系人列表。查询匹配来自 OTHER_CONTACT 源的联系人的 names、emailAddresses 和 phoneNumbers 字段。重要提示:在搜索之前,客户端应发送一个带有空查询的预热请求以更新缓存。请参阅 https://developers.google.com/people/v1/other-contacts#search_the_users_other_contactsbatchCreateContacts — 创建一批新联系人,并返回新创建联系人的 PersonResponses。为避免增加延迟和失败,应顺序发送同一用户的变更请求。batchUpdateContacts — 更新一批联系人,并返回资源名称到已更新联系人的 PersonResponses 的映射。为避免增加延迟和失败,应顺序发送同一用户的变更请求。createContact — 创建新联系人,并返回该联系人的 person 资源。如果在联系源中是单例的字段上指定了多个字段,请求将返回 400 错误:* biographies * birthdays * genders * names。为避免增加延迟和失败,应顺序发送同一用户的变更请求。deleteContactPhoto — 删除联系人的照片。为避免锁争用,应顺序处理同一用户的变更请求。get — 通过指定资源名称提供有关人员的信息。使用 people/me 表示经过身份验证的用户。如果未指定 'personFields',请求将返回 400 错误。getBatchGet — 通过指定请求的资源名称列表,提供有关特定人员列表的信息。使用 people/me 表示经过身份验证的用户。如果未指定 'personFields',请求将返回 400 错误。listDirectoryPeople — 提供经过身份验证的用户域目录中的域个人资料和域联系人列表。当指定 sync_token 时,自上次同步以来删除的资源将作为 PersonMetadata.deleted 设置为 true 的 person 返回。当指定 page_token 或 sync_token 时,所有其他请求参数必须与首次调用匹配。对于同步请求,写入操作可能会有几分钟的传播延迟。增量同步不适用于读写后读的场景。searchContacts — 提供经过身份验证的用户的分组联系人中与搜索查询匹配的联系人列表。查询匹配来自 CONTACT 源的联系人的 names、nickNames、emailAddresses、phoneNumbers 和 organizations 字段。重要提示:在搜索之前,客户端应发送一个带有空查询的预热请求以更新缓存。请参阅 https://developers.google.com/people/v1/contacts#search_the_users_contactssearchDirectoryPeople — 提供经过身份验证的用户域目录中与搜索查询匹配的域个人资料和域联系人列表。updateContact — 更新现有联系人的联系人数据。任何非联系人数据将不会被修改。待更新 person 中的任何非联系人数据将被忽略。update_mask 中指定的所有字段将被替换。如果未为待更新的联系人指定 person.metadata.sources 或者没有联系人源,服务器将返回 400 错误。updateContactPhoto — 更新联系人的照片。为避免增加延迟和失败,应顺序发送同一用户的变更请求。connections — 对 'connections' 资源的操作在调用任何 API 方法之前,请先检查它:
# 浏览资源和方法
gws people --help
# 检查方法的必需参数、类型和默认值
gws schema people.<resource>.<method>
使用 gws schema 输出来构建你的 --params 和 --json 标志。
每周安装量
6.0K
代码仓库
GitHub 星标数
22.5K
首次出现
2026年3月4日
安全审计
安装于
codex5.8K
opencode5.8K
gemini-cli5.8K
cursor5.8K
github-copilot5.8K
amp5.8K
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
gws people <resource> <method> [flags]
batchGet — Get a list of contact groups owned by the authenticated user by specifying a list of contact group resource names.create — Create a new contact group owned by the authenticated user. Created contact group names must be unique to the users contact groups. Attempting to create a group with a duplicate name will return a HTTP 409 error. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.delete — Delete an existing contact group owned by the authenticated user by specifying a contact group resource name. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.get — Get a specific contact group owned by the authenticated user by specifying a contact group resource name.list — List all contact groups owned by the authenticated user. Members of the contact groups are not populated.update — Update the name of an existing contact group owned by the authenticated user. Updated contact group names must be unique to the users contact groups. Attempting to create a group with a duplicate name will return a HTTP 409 error. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.members — Operations on the 'members' resourcecopyOtherContactToMyContactsGroup — Copies an "Other contact" to a new contact in the user's "myContacts" group Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.list — List all "Other contacts", that is contacts that are not in a contact group. "Other contacts" are typically auto created contacts from interactions. Sync tokens expire 7 days after the full sync. A request with an expired sync token will get an error with an google.rpc.ErrorInfo with reason "EXPIRED_SYNC_TOKEN". In the case of such an error clients should make a full sync request without a sync_token.search — Provides a list of contacts in the authenticated user's other contacts that matches the search query. The query matches on a contact's names, emailAddresses, and phoneNumbers fields that are from the OTHER_CONTACT source. IMPORTANT : Before searching, clients should send a warmup request with an empty query to update the cache. See batchCreateContacts — Create a batch of new contacts and return the PersonResponses for the newly Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.batchUpdateContacts — Update a batch of contacts and return a map of resource names to PersonResponses for the updated contacts. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.createContact — Create a new contact and return the person resource for that contact. The request returns a 400 error if more than one field is specified on a field that is a singleton for contact sources: * biographies * birthdays * genders * names Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.deleteContactPhoto — Delete a contact's photo. Mutate requests for the same user should be done sequentially to avoid // lock contention.get — Provides information about a person by specifying a resource name. Use people/me to indicate the authenticated user. The request returns a 400 error if 'personFields' is not specified.getBatchGet — Provides information about a list of specific people by specifying a list of requested resource names. Use to indicate the authenticated user. The request returns a 400 error if 'personFields' is not specified.Before calling any API method, inspect it:
# Browse resources and methods
gws people --help
# Inspect a method's required params, types, and defaults
gws schema people.<resource>.<method>
Use gws schema output to build your --params and --json flags.
Weekly Installs
6.0K
Repository
GitHub Stars
22.5K
First Seen
Mar 4, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex5.8K
opencode5.8K
gemini-cli5.8K
cursor5.8K
github-copilot5.8K
amp5.8K
99,500 周安装
people/melistDirectoryPeople — Provides a list of domain profiles and domain contacts in the authenticated user's domain directory. When the sync_token is specified, resources deleted since the last sync will be returned as a person with PersonMetadata.deleted set to true. When the page_token or sync_token is specified, all other request parameters must match the first call. Writes may have a propagation delay of several minutes for sync requests. Incremental syncs are not intended for read-after-write use cases.searchContacts — Provides a list of contacts in the authenticated user's grouped contacts that matches the search query. The query matches on a contact's names, nickNames, emailAddresses, phoneNumbers, and organizations fields that are from the CONTACT source. IMPORTANT : Before searching, clients should send a warmup request with an empty query to update the cache. See https://developers.google.com/people/v1/contacts#search_the_users_contactssearchDirectoryPeople — Provides a list of domain profiles and domain contacts in the authenticated user's domain directory that match the search query.updateContact — Update contact data for an existing contact person. Any non-contact data will not be modified. Any non-contact data in the person to update will be ignored. All fields specified in the update_mask will be replaced. The server returns a 400 error if person.metadata.sources is not specified for the contact to be updated or if there is no contact source.updateContactPhoto — Update a contact's photo. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.connections — Operations on the 'connections' resource