rapidwebltd / php-google-people-api

👥 This package provides a user friendly way of interacting with Google Contacts via the Google People API.
GNU Lesser General Public License v3.0
100 stars 39 forks source link

Contact Group Membership #31

Open luisdatec opened 4 years ago

luisdatec commented 4 years ago

Hi! I am trying to add the Membership Group, and I cannot find the correct way to assign the Group to the contact. I have read some documentation that only is needed this part: https://developers.google.com/people/api/rest/v1/people#Person.ContactGroupMembership

So, I have added in the array this: $contact->memberships[0]->contactGroupMembership->contactGroupResourceName = 'contactGroups/{GROUP_ID};

But, this is not taking the group. It saved all the data, but not the group.

Please let me know how to solve this.

Thanks.

luisdatec commented 3 years ago

Hello any idea ??