Hi Julian,
I am not able to get google system groups through Google
Contact API. And also i did not see the system groups in google group
xml response file.
but i am able to get custom groups(through contact API and xml
response file ). I don't know why i did not get the system group.
please help me to solve this problem ASAP.
i am using V2 Google contact API
my sample code below:
URL feedUrl = new URL("
http://www.google.com/m8/feeds/groups/
test.gc...@gmail.com/full");
ContactGroupFeed resultFeed = service.getFeed(feedUrl,
ContactGroupFeed.class);
// Print the results
System.out.println(resultFeed.getTitle().getPlainText());
for (int i = 0; i < resultFeed.getEntries().size(); i++) {
ContactGroupEntry groupEntry = resultFeed.getEntries().get(i);
System.out.println("Id: " + groupEntry.getId());
System.out.println("Group Name: " + groupEntry.getTitle
().getPlainText());
System.out.println("Last Updated: " + groupEntry.getUpdated());
System.out.println("Extended Properties:");
for (ExtendedProperty property : groupEntry.getExtendedProperties
()) {
if (property.getValue() != null) {
System.out.println(" " + property.getName() + "(value) = " +
property.getValue());
} else if (property.getXmlBlob() != null) {
System.out.println(" " + property.getName() + "(xmlBlob) = "
+
property.getXmlBlob().getBlob());
}
}
if (!groupEntry.hasSystemGroup()) {
// System groups do not have an edit link
System.out.println("Edit Link: " + groupEntry.getEditLink
().getHref());
System.out.println("ETag: " + groupEntry.getEtag());
}
if (groupEntry.hasSystemGroup()) {
System.out.println("System Group Id: " +
groupEntry.getSystemGroup().getId());
}
Thanks,
Felix.