2
기존 ContactGroupEntry에 GroupMembershipInfo를 포함하도록 기존 ContactEntry를 업데이트하는 올바른 방법은 무엇입니까? 나는 자바 API를 com.google.gdata.data.contacts을 사용하고GroupMembershipInfo에서 ContactEntry를 제거 할 수 있지만 GroupMembershipInfo를 추가 할 수 없음
...
// groupNameId was fetched with ContactGroupEntry.getId()
// entry is a known-good ContactEntry
// contactsService is a properly authenticated feed
GroupMembershipInfo g = new GroupMembershipInfo();
g.setHref(groupNameId);
entry.addGroupMembershipInfo(g);
contactsService.update(new URL(entry.getEditLink().getHref()), entry);
// .... fails with PreconditionFailedException
나는 성공적으로 그룹 구성원을 연락처를 검색하고 제거 할 수 있어요,하지만 그룹 구성원을 추가하는 것은 저를 벗어난 것입니다 , 나는 샘플 코드의 유용한 조각을 찾을 수있는 권리 Google 검색을 알아낼 수 없었습니다