Rails 3 使用omniauth 获取gmail 联系人?
我使用omniauth 成功使用google 凭据登录? omniauth 提供 uid,如下链接
https://www.google.com/accounts/o8/id?id =xxxxxxxxxx
通过使用上面的链接可以获取gmail联系人或他们任何其他方式获取gmail联系人
I am successfully login with google credentials using omniauth? omniauth is providing uid as following link
https://www.google.com/accounts/o8/id?id=xxxxxxxxxx
by using the above link is possible to get gmail contacts or their any other way to get gmail contact
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,Omniauth 仅提供身份验证。
有一个宝石您可能会感兴趣: https://github.com/cardmagic/contacts
引用:“Contacts 是一个通用界面,可从 Hotmail、AOL、Gmail、Plaxo 和 Yahoo 等各种提供商获取联系人列表信息。”
编辑:也看看这篇博客文章: http ://rtdptech.com/2010/12/importing-gmail-contacts-list-to-rails-application/
No, Omniauth just provides authentication.
There is a gem that might be interesting for you: https://github.com/cardmagic/contacts
Quote: "Contacts is a universal interface to grab contact list information from various providers including Hotmail, AOL, Gmail, Plaxo and Yahoo."
Edit: Take a look at this blog post too: http://rtdptech.com/2010/12/importing-gmail-contacts-list-to-rails-application/
从此处获取您的 client_id 和 client_secret。这是一个粗略的脚本,但效果很好。根据您的需要对其进行修改。
设置的屏幕截图。
Get your client_id and client_secret from here. This is rough script, which works perfectly fine. Modified it as per your needs.
Screenshot for settings.