2

I am using php5 and I am trying to import my contacts from my Gmail and Yahoo Mail and want to store in my database... I don't know how to get started? Any suggestions?

hakre
  • 193,403
  • 52
  • 435
  • 836
  • [*Dev*](http://stackoverflow.com/users/486348/dev) [wrote](http://stackoverflow.com/a/8209663/367456): *"You can use OpenInviter (openinviter.com)."*; See as well: [import user contacts form google, yahoo, and AOL in php](http://stackoverflow.com/q/4544893/367456) – hakre Dec 13 '12 at 15:13

3 Answers3

3

One suggestion is to investigate OAuth.

What OAuth support allows is trusted 3rd party access to secure data. Previously, Twitter required your gmail user account details and logged in as you, and using the gdata protocol, queried your contacts, pulling in the data. You hoped that twitter used your creds securely, and didn't bother storing them.

With OAuth does, is allows Twitter to make a request to Gmail on your behalf. Instead of giving Twitter your Gmail account creds, Gmail asks you if it's okay to share certain data with Twitter. Should you accept this request, the data is shared, securely, while not requiring you to divulge your gmail creds to twitter or any other party.

With regards to actually getting data, take a look at Google's Contact API. Those are the calls your app might typically use to pull in contacts.

Alan
  • 45,915
  • 17
  • 113
  • 134
1

Contact Grabber from PHP classes site would be a good start...

hakre
  • 193,403
  • 52
  • 435
  • 836
ACP
  • 34,682
  • 100
  • 231
  • 371
-1

For a commercial solution, you could give RecogniContact (-> Address-Parser.com) a try.

We Know
  • 95
  • 1
  • 3