Google System group

113 views
Skip to first unread message

Felix

unread,
May 26, 2009, 12:55:05 AM5/26/09
to Google Contacts API
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.

Julian (Google)

unread,
May 26, 2009, 6:33:19 PM5/26/09
to Google Contacts API
Hi Felix,

Everything looks good in your code, I am sure is a V2 call because the
ETags. If you have many groups, try adding the parameter ?max-
results=1000 to your feed URL.
test.gconta...@gmail.com/full?max-results=1000");

Please let me know if that does not help.

Thanks,
--Julian

On May 25, 9:55 pm, Felix <test.gconta...@gmail.com> wrote:
> 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.gconta...@gmail.com/full");
Reply all
Reply to author
Forward
0 new messages