Warm tip: This article is reproduced from stackoverflow.com, please click
vba contacts google-people google-people-api

Google, people api, how can I create a contact in a group

发布于 2020-03-27 15:43:56

With people.createContact I can easily create a contact in myContacts.

But how do I create a contact in a special group ??

Questioner
R L
Viewed
15
ziganotschka 2020-01-31 18:43

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.