Class: OmniAuth::Strategies::Odesk
- Inherits:
-
OAuth
- Object
- OAuth
- OmniAuth::Strategies::Odesk
- Defined in:
- lib/omniauth/strategies/odesk.rb
Instance Method Summary collapse
Instance Method Details
#raw_info ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'lib/omniauth/strategies/odesk.rb', line 40 def raw_info # Reference: https://www.elance.com/q/api2/methods/profiles/my raw_info = access_token.get('/api/hr/v2/users/me.json') data = raw_info.read_body data = (data ? JSON.parse(data) : {} ) data['user'] || {} end |