问题
With people.createContact I can easily create a contact in myContacts.
But how do I create a contact in a special group ??
回答1:
You can create the contact with the method - people.createContact, as you are probably already doing.
All you have to change is to specify a membership:
"memberships": [
{
"contactGroupMembership": {
"contactGroupResourceName": "contactGroups/PASTE_HERE_THE_NAME_OF_THE_GROUP"
}
}
]
Have a look at this sample.
来源:https://stackoverflow.com/questions/60000605/google-people-api-how-can-i-create-a-contact-in-a-group