0
我試圖通過omniauth-google-oauth2返回數據,當試圖獲取Google Plus上的朋友列表時。根據此示例:Access Google Plus Contacts google-api-ruby-client and omniauth-google-oauth2這是什麼Ruby數據類型?
以下是我收到的內容。但我不知道如何訪問裏面的數據...我如何訪問每個項目的「totalItems」和「ID」?
#<Google::APIClient::Schema::Plus::V1::PeopleFeed:0x3fe23371942c DATA:{"kind"=>"plus#peopleFeed", "etag"=>"\"L2Xbn8bDuSErT6QA3PEQiwYKQxM/mZ7BwKMAmnHq1YqeqfmoWNwqzeo\"", "title"=>"Google+ List of Connected People", "totalItems"=>1, "items"=>[{"kind"=>"plus#person", "etag"=>"\"L2Xbn8bDuSErT6QA3PEQiwYKQxM/MtyIlmmWQjDBCz3k5wZI9k7O4p8\"", "objectType"=>"person", "id"=>"118404349465393928176", "displayName"=>"Hélène Ponty", "url"=>"https://plus.google.com/118404349465393928176", "image"=>{"url"=>"https://lh6.googleusercontent.com/-9w6_N_yJ5zc/AAAAAAAAAAI/AAAAAAAAAeg/PnYBbkTFqYE/photo.jpg?sz=50"}}]}>
配不上我!謝謝! – echan00 2014-09-22 20:15:29