Module: Gigya::RestAPI
- Defined in:
- lib/gigya/rest_api.rb
Class Method Summary collapse
Class Method Details
.get_user_info(oauth_token) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/gigya/rest_api.rb', line 3 def self.get_user_info(oauth_token) url = Gigya.build_url(Gigya::URLS[:socialize], Gigya::URIS[:get_user_info]) response = Gigya.connection.get(url, { oauth_token: oauth_token, format: 'json' }) JSON.parse response.body end |