Hi,
I am using the following php code to import gmail contacts for a particular
login.
1. $xml= new SimpleXMLElement($xmlresponse);
2. $xml->registerXPathNamespace('gd', 'http://schemas.google.com/g/2005')
;
3. $result = $xml->xpath('//gd:email');
4.
5. foreach ($result as $feed) {
6.
7. echo <http://www.php.net/echo> $feed->attributes()->displayName .
"<br>";
8. echo <http://www.php.net/echo> $feed->attributes()->address .
"<br><br>";
9.
10. }
I get all the contact addresses but the displayName is not returning
anything, I am not sure which version protocol version I am using (probably
it is 1.0)
Can someone help me to fetch the contact name in that scenario
(protocol1)?
--
Alias
--
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