Class: OmniAuth::Strategies::Goodreads
- Inherits:
-
OAuth
- Object
- OAuth
- OmniAuth::Strategies::Goodreads
- Defined in:
- lib/omniauth/strategies/goodreads.rb
Instance Method Summary collapse
Instance Method Details
#raw_info ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/omniauth/strategies/goodreads.rb', line 35 def raw_info if @raw_info.nil? MultiXml.parser = :rexml authenticated_user = MultiXml.parse(access_token.get('/api/auth_user').body) id = authenticated_user['GoodreadsResponse']['user']['id'].to_i response_doc = MultiXml.parse(access_token.get("/user/show/#{id}.xml?key=#{@consumer_key}").body) @raw_info = response_doc['GoodreadsResponse']['user'] end @raw_info end |
#request_phase ⇒ Object
14 15 16 |
# File 'lib/omniauth/strategies/goodreads.rb', line 14 def request_phase super end |