My Contacts vs. All Contacts

33 views
Skip to first unread message

D2

unread,
Mar 24, 2009, 7:17:50 AM3/24/09
to Google Contacts API
Hello i am working on Google Contacts api... There are two
contactFolder in gmail Account... 1 is "My Contacts" & other one is
"All Contacts"... I want to retrieve data only from "My Contacts" not
from "All Contacts"... how can i differentiate this....

Please reply soon...


my URL : http://www.google.com/m8/feeds/contacts/default/full to
retrieve google Contacts...

Devang Parekh

unread,
Mar 25, 2009, 10:13:55 AM3/25/09
to Google Contacts API
plz any body has idea about this???... my further work depends on it... reply soon....

Julian (Google)

unread,
Mar 25, 2009, 10:26:56 AM3/25/09
to Google Contacts API
Hi,

The ability to query information only from "My Contacts" was added on
the version 2 of the Contacts API, the following thread explains this:
http://groups.google.com/group/google-contacts-api/browse_thread/thread/7cdfed22e7a7a808/5df91a9f7e183215

Also, lately there was another thread about querying contacts from a
single Group on PHP, it would be similar in other programming
languages:
http://groups.google.com/group/google-contacts-api/browse_thread/thread/f3d7e96040be7b/c63078014c340aca

Cheers,
Julian

On Mar 25, 2:13 pm, Devang Parekh <devangsofte...@gmail.com> wrote:
> plz any body has idea about this???... my further work depends on it...
> reply soon....
>

Ashvin Savani

unread,
Mar 25, 2009, 11:07:23 AM3/25/09
to google-co...@googlegroups.com
Julian,

Thanks a lot for links :)

Ashvin

Ashvin Savani

unread,
Mar 25, 2009, 11:11:45 AM3/25/09
to google-co...@googlegroups.com
Julian,

I read through the links, Which says that I need to grab all the contacts from FULL feed and then need to parse the contacts which contains groupsInfo for my contacts. But is there any direct way to retrieve contacts only from one particular group?

Regards,

Ashvin

On Wed, Mar 25, 2009 at 7:56 PM, Julian (Google) <j...@google.com> wrote:

Ashvin Savani

unread,
Mar 25, 2009, 11:17:47 AM3/25/09
to google-co...@googlegroups.com
nevermind,

Got it from the another link. Thanks once again for your help Julian.

Ashvin

Julian (Google)

unread,
Mar 25, 2009, 11:21:02 AM3/25/09
to Google Contacts API
Hi Ashvin,

Yes, that is also possible, it was mentioned on the thread. You can
add to your query the parameter ?group=GROUP-ID, for example:
http://www.google.com/m8/feeds/contacts/user%40gmail.com/full/?group=http://www.google.com/m8/feeds/groups/user%40domain.com/base/6

The only problem could be that the ID of the group changes, as today
My contacts has the ID http://www.google.com/m8/feeds/groups/user%40domain.com/base/6

-Julian.

On Mar 25, 3:11 pm, Ashvin Savani <ash...@avinashi.com> wrote:
> Julian,
> I read through the links, Which says that I need to grab all the contacts
> from FULL feed and then need to parse the contacts which contains groupsInfo
> for my contacts. But is there any direct way to retrieve contacts only from
> one particular group?
>
> Regards,
>
> Ashvin
>
> On Wed, Mar 25, 2009 at 7:56 PM, Julian (Google) <j...@google.com> wrote:
>
> > Hi,
>
> > The ability to query information only from "My Contacts" was added on
> > the version 2 of the Contacts API, the following thread explains this:
>
> >http://groups.google.com/group/google-contacts-api/browse_thread/thre...
>
> > Also, lately there was another thread about querying contacts from a
> > single Group on PHP, it would be similar in other programming
> > languages:
>
> >http://groups.google.com/group/google-contacts-api/browse_thread/thre...

Ashvin Savani

unread,
Mar 25, 2009, 11:30:55 AM3/25/09
to google-co...@googlegroups.com
Julian,

Thanks for the feedback. So better would be to go by group names instead of IDs?

Regards,

Ashvin

Julian (Google)

unread,
Mar 25, 2009, 11:42:54 AM3/25/09
to Google Contacts API
It should be better, but you would need to iterate over all the Groups
using the name to get the Group's ID, because the group parameter only
accepts IDs.

Julian

On Mar 25, 3:30 pm, Ashvin Savani <ash...@avinashi.com> wrote:
> Julian,
> Thanks for the feedback. So better would be to go by group names instead of
> IDs?
>
> Regards,
>
> Ashvin
>
> On Wed, Mar 25, 2009 at 8:51 PM, Julian (Google) <j...@google.com> wrote:
>
> > Hi Ashvin,
>
> > Yes, that is also possible, it was mentioned on the thread. You can
> > add to your query the parameter ?group=GROUP-ID, for example:
>
> >http://www.google.com/m8/feeds/contacts/user%40gmail.com/full/?group=...

Ashvin Savani

unread,
Mar 25, 2009, 11:46:40 AM3/25/09
to google-co...@googlegroups.com
Right.

Once again, thanks for  your help Julian.

Regards,

Ashvin
Reply all
Reply to author
Forward
0 new messages