class OmniAuth::Strategies::Rdio

Constants

BASE_URL
EXTRA_USER_FIELDS

All optional User fields except lastSongPlayed and lastSongPlayTime. See developer.rdio.com/docs/read/rest/types#User

Public Instance Methods

raw_info() click to toggle source

Rdio User object from the currentUser call See developer.rdio.com/docs/read/rest/Methods#currentUser

# File lib/omniauth/strategies/rdio.rb, line 43
def raw_info
  @raw_info ||=
    begin
      json = access_token.post('http://api.rdio.com/1/',
                               :method => 'currentUser',
                               :extras => EXTRA_USER_FIELDS).body
      MultiJson.decode(json)['result']
    end
rescue ::Errno::ETIMEDOUT
  raise ::Timeout::Error
end