Class: OmniAuth::Strategies::Svpply

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/svpply.rb

Instance Method Summary collapse

Instance Method Details

#raw_infoObject



27
28
29
30
31
# File 'lib/omniauth/strategies/svpply.rb', line 27

def raw_info
  access_token.options[:param_name] = 'access_token'
  access_token.options[:mode] = :query
  @raw_info ||= JSON.parse(access_token.get('/v1/users/me.json').body)['response']
end