任何機構都可以告訴我如何在羣組下創建一個Google聯繫人,例如我有一個羣組名稱系列,在此下面我想添加聯繫人。現在,我能夠創造接觸,但其下別人去下面的代碼我使用如何在Google中創建聯繫人羣組
ContactEntry contact = new ContactEntry();
contact.setTitle(new PlainTextConstruct("chetan"));
contact.setContent(new PlainTextConstruct("sharma"));
Email primaryMail = new Email();
primaryMail.setAddress("[email protected]");
primaryMail.setRel("http://schemas.google.com/g/2005#home");
primaryMail.setPrimary(true);
contact.addEmailAddress(primaryMail);
ExtendedProperty favouriteFlower = new ExtendedProperty();
favouriteFlower.setName("favourite flower");
favouriteFlower.setValue("daisy");
contact.addExtendedProperty(favouriteFlower);
//URL postUrl = new URL("https://www.google.com/m8/feeds/contacts/defaults/full");
contact = service.insert(feedUrl, contact);
GroupMembershipInfo groupMembershipInfo = new GroupMembershipInfo(false, "http://www.google.com/m8/feeds/groups/defaults/base/39eb8f59897bac4d");
//groupMembershipInfo
contact.addGroupMembershipInfo(groupMembershipInfo);