Can't seem to add existing contact to existing contact group
147 views
Skip to first unread message
KvB
unread,
Jul 18, 2009, 4:25:05 PM7/18/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Contacts API
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.
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!
Julian (Google)
unread,
Jul 20, 2009, 8:45:58 AM7/20/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Contacts API
Hi,
I think the problem you are getting is because you need to use/get the
FULL protection for the Contact Entry, here is a small sample that
adds a user to an existing group: