Hi Kevin,

At the moment there is not a better way, you are doing it correctly.

For the Contacts group, the ID is 6 as you mention, however, we do not
guarantee that this will not change in the future.

Cheers,
Julian.

On Oct 6, 12:36 am, Kevin <[email protected]> wrote:
> To do a query for all user contacts in "My Contacts",  what I'm
> currently doing works and is consistent with the API documentation
> that I've seen, but seems really inefficient.
>
> Query.setStringCustomParameter("group", groupId)  requires the
> groupid.
>
> To get the groupid, I need to do a separate Google query to read all
> of the user account's contact groups, iterate through those and find
> the id for the "Contacts" system group.
>
> It's this extra query to get the Contacts system groupid that bothers
> me.  As far as I can tell, all contact system groups have the same id
> format,  e.g.  "http://www.google.com/m8/feeds/groups/
> [email protected]/base/6").   Only the number at the end changes
> depending on the system group you are interested in.
>
> Is there a way to avoid the extra query?   Or does Google threaten to
> later change the system groupid for Contacts?     Thanks.
>
> ---
>
>        Kevin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Contacts API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to