Method: contactGroups.members.modify
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-21。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-08-21。"],[[["\u003cp\u003eModify the members of a contact group owned by the authenticated user using the \u003ccode\u003ePOST\u003c/code\u003e method and providing resource names to add or remove.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain two optional fields: \u003ccode\u003eresourceNamesToAdd\u003c/code\u003e and \u003ccode\u003eresourceNamesToRemove\u003c/code\u003e, specifying the contact people to add or remove, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe response body may include lists of \u003ccode\u003enotFoundResourceNames\u003c/code\u003e and \u003ccode\u003ecanNotRemoveLastContactGroupResourceNames\u003c/code\u003e for unsuccessful operations.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/contacts\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eSystem contact groups like \u003ccode\u003econtactGroups/myContacts\u003c/code\u003e and \u003ccode\u003econtactGroups/starred\u003c/code\u003e allow member addition, while others are deprecated and only support removal.\u003c/p\u003e\n"]]],["This describes modifying members in a user's contact group via a `POST` request to `https://people.googleapis.com/v1/{resourceName=contactGroups/*}/members:modify`. The `resourceName` (contact group's identifier) is required in the path. The request body uses JSON to specify `resourceNamesToAdd` and `resourceNamesToRemove` which can be `people/{person_id}`. `myContacts` and `starred` can add members. The response body contains `notFoundResourceNames` and `canNotRemoveLastContactGroupResourceNames` using JSON. The API uses OAuth scope `https://www.googleapis.com/auth/contacts`.\n"],null,[]]