Hi all,
I'm trying to make my way through the google contacts api in java and
I want to be able to add or delete contacts from contact groups. So
far I haven't been succesful and I now have the following error.
When I run this code:
private void archiveContact(ContactEntry contact) throws Exception {
if (ARCHIVE_GROUP_ID == null) {
getArchiveGroupId();
}
GroupMembershipInfo gmsi = new GroupMembershipInfo();
gmsi.setHref(ARCHIVE_GROUP_ID);
contact.addGroupMembershipInfo(gmsi);
URL editUrl = new URL(contact.getEditLink().getHref());
myService.update(editUrl, contact);
}
I get this error:
com.google.gdata.util.InvalidEntryException: Bad Request
Group membership information not supported.
Does anyone have a working example of java usage of the api to add/
remove existing contacts to/from existing contact groups? Or can
anyone help me solve the error above?
Regards and thanks for any help in advance!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Contacts API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---