My application stores lots of its users friends' phone numbers. I'd like to allow users to associate names with these phone numbers, but I don't want to make users manually type in names (obviously).
我的应用程序存储了很多用户朋友的电话号码。我想允许用户将姓名与这些电话号码相关联,但我不想让用户手动输入姓名(显然)。
I'm curious what the best overall approach is here, as well as the best way to implement it
我很好奇这里最好的整体方法是什么,以及实现它的最佳方法
Overall approach-wise, I imagine using Gmail / Yahoo / Windows Live contacts is best (the Facebook API doesn't let you access phone numbers), though the gems I've found for interacting with these contacts APIs (this and this) only give you access to the names and email addresses of each contact.
整体方法,我认为使用Gmail / Yahoo / Windows Live联系人是最好的(Facebook API不允许您访问电话号码),虽然我发现与这些联系人API(此和此)进行交互的宝石允许您访问每个联系人的姓名和电子邮件地址。
1 个解决方案
#1
1
Most people don't have phone numbers in Gmail's contacts.
大多数人在Gmail的联系人中没有电话号码。
You can allow to import phone book via vCard or do smth to impot from iPhone/Android
您可以通过vCard导入电话簿,也可以通过iPhone / Android进行操作
Alternatively, you can write a custom parser for google's phone book or use gData API (not sure if it supports it)
或者,您可以为谷歌的电话簿编写自定义解析器或使用gData API(不确定它是否支持)
#1
1
Most people don't have phone numbers in Gmail's contacts.
大多数人在Gmail的联系人中没有电话号码。
You can allow to import phone book via vCard or do smth to impot from iPhone/Android
您可以通过vCard导入电话簿,也可以通过iPhone / Android进行操作
Alternatively, you can write a custom parser for google's phone book or use gData API (not sure if it supports it)
或者,您可以为谷歌的电话簿编写自定义解析器或使用gData API(不确定它是否支持)