我正在使用设计用omniauth,authid进行登录。当用户登录我得到如何在Ruby中使用OpenID访问Google联系人
user_info:
name: Riccardo Tacconi
last_name: Tacconi
email: [email protected]
first_name: Riccardo
uid: https://www.google.com/accounts/o8/id?id=xxxxxxxxx
provider: google_apps
我发现了一个插件:http://stakeventures.com/articles/2009/10/06/portable-contacts-in-ruby获取谷歌联系人。我只需要使用这种方法:
@client = PortableContacts::Client.new "http://www-opensocial.googleusercontent.com/api/people", @access_token
但我需要一个令牌。我只有uid。你有一个想法如何获得访问令牌?没有任何有关访问谷歌的文档。
重复的问题? [如何在Ruby中使用OpenID访问Google通讯录](http://stackoverflow.com/q/4337259/128421) – 2010-12-14 05:21:07