fetch all name and email address from my contacts

145 views
Skip to first unread message

pratik prajapati

unread,
Oct 4, 2012, 2:53:22 AM10/4/12
to google-api...@googlegroups.com
Hi 
I have 2 questions. I am using this feature to invite friends from my website. It is fetching my contact list with all the feeds. from that i am filtering email and name.
  1. I want to fetch all user's name and email address only. 
  2. I want to remove all contacts on refresh. currenlty it is forcing me to logout to remove all the contact that i have fetch on my website.
Message has been deleted

Warren Vail

unread,
Oct 18, 2012, 2:57:01 PM10/18/12
to google-api...@googlegroups.com

I have had some success with the latest contacts API ( https://developers.google.com/google-apps/contacts/v3/ ) but I found I needed to add the value "?v=3.0" to the end of my GoogleHttpRequest to get it to reveal the contacts actual name (gd:email will contain the email address as an attribute of "address").

I also found that the php simpleXMLload functions did not parse the results correctly, seems it doesn't consider tag names with colons in them as valid XML tags, had to build my own parser using XML Parse

Good luck,

Warren Vail

unread,
Oct 18, 2012, 3:05:27 PM10/18/12
to google-api...@googlegroups.com
One other discovery was that because many of my contacts were old to very old (beginning in Gmail), and because some of my newer contacts had not shared anything with me, many of the names and email addresses were missing from the feed (i.e. my score was out of 26 contacts only 11 had both first and last names and only 9 had email addresses, and many of the email addresses had no name at all, so one was not a subset of the other).

Warren


On Wednesday, October 3, 2012 11:53:22 PM UTC-7, pratik prajapati wrote:
Reply all
Reply to author
Forward
0 new messages