Ruby on Rails Thursday, November 28, 2013

On Thu, Nov 28, 2013 at 9:51 AM, Daynthan Kabilan <dayanthan86@gmail.com> wrote:

> how to import hotmail contacts in our application.
...
> name return correctly but email return empty.

The README at https://github.com/Diego81/omnicontacts says:

===8<---cut here---

Hotmail presents a "peculiar" feature. Their API returns a Contact
object which does not contain an e-mail field! However, if the contact
has either name, family name or both set to null, than there is a
field called name which does contain the e-mail address. This means
that it may happen that an Hotmail contact does not contain the email
field.

===8<---cut here---

Also, at least as of early 2013, Hotmail didn't let you retrieve your
contacts' email addresses, UNLESS said contact was a Hotmail user too,
AND had specifically approved the app in question to see their
address. They may have loosened that up since then, but I wouldn't
count on it.

-Dave (who has contributed code to Omnicontacts)

--
Dave Aronson, the T. Rex of Codosaurus LLC (codosaur.us),
freelance software developer, and creator of these sites:
PullRequestRoulette.com, blog.codosaur.us, & Dare2XL.com.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAHxKQijDHftiDVCZcLgpbOC95%3D_vFTy%2B%3DH0XT56PJ37cOdMWBA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment