I've had some success with this, The url you show below should provide both 
name and emails but you need to take care of a couple of things;

   - if you are parsing using simpleXMLLoad, it will mask the gd:mail tag 
   because, I suspect, it considers tags with colon's in the name as malformed 
   and discards them.  Solution is to code your own xml parser using 
   xml_parse, creating your own start tag, end tag and middle CData routines, 
   not real tough.  This will allow you to see the gd:email tag and that the 
   address attribute of the tag contains the actual email address. 
   - you need to make sure you are informing the server which version of 
   the API you are using by adding the following to the end of the URL you use 
   for your request "&v=3.0".  This is a nice adaptation in that it means when 
   version 4 comes our the API can continue to be compatible with your code by 
   supplying data acording to the V3.0 specs.  I believe V3 is the first 
   version to support the gd:fullname; gd:givenname and gd:familyname data.

Good luck,
 
Warren
 

On Tuesday, March 27, 2012 8:55:42 AM UTC-7, Baptiste Lafontaine wrote:

> Hi, 
>
> I'm trying to use Google Contacts API to get the list of Emails my users 
> (if they want to) in order to get their friends that already have subsribed 
> to the website. 
>
> I'm using the google api for php. The request I am doing is :
> $req = new apiHttpRequest("
> https://www.google.com/m8/feeds/contacts/default/full?max-results=9999";);
>
> In the XML file resulting, I don't have any emails. Should I do another 
> request on https://google.com/m8/feeds/contacts/default/<contact ID>/full 
> all results in order to get the emails ?
>
> Thanks.
>

-- 
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" 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://code.google.com/apis/contacts/community/forum.html

Reply via email to