lib/client_success/open_api/authentication.rb
# Returns the hash response from ClientSuccess
# containing the 'access-token' key.
#
# @param [String] username
# @param [String] password
# @return [Hash]
#
Returns the hash response from ClientSuccess
containing the 'access-token' key.
Returns the hash response from ClientSuccess containing the ' access - token ' key .
def request_access_token(username, password)
        resp = auth_connection.post(
          build_api_endpoint_for('/auth'),
          username: username,
          password: password
        )
        process_response(resp)
      end
def request_access_token ( username , password ) resp = auth_connection . post ( build_api_endpoint_for ( '/auth' ) , username : username , password : password ) process_response ( resp ) end
Returns the hash response from ClientSuccess
containing the 'access-token' key.
Returns the hash response from ClientSuccess containing the ' access - token ' key .
None
Hash
username
password
None