lib/social_plus/web_api/user.rb
# Fetch information of a user using a given one time token
# @param [Client] api_client an API client
# @param [String] token the token returned from Social Plus login
# @return [User] User object
Fetch information of a user using a given one time token
Fetch information of a user using a given one time token
def authenticate(api_client, token)
          result = api_client.execute('authenticated_user', token: token, add_profile: true)
          result['providers'] = api_client.execute('providers_of_user', identifier: result['user']['identifier'])['providers']
          new(result)
        end
def authenticate ( api_client , token ) result = api_client . execute ( 'authenticated_user' , token : token , add_profile : true ) result [ 'providers' ] = api_client . execute ( 'providers_of_user' , identifier : result [ 'user' ] [ 'identifier' ] ) [ 'providers' ] new ( result ) end
Fetch information of a user using a given one time token
Fetch information of a user using a given one time token
None
User
api_client
<not_specific>
token
<not_specific>
<not_specific>
token the token returned from Social Plus login
token the token returned from Social Plus login