我正在使用設計用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