Class: BalihooLpcClient::Request::Authentication

Inherits:
Base
  • Object
show all
Defined in:
lib/balihoo_lpc_client/request/authentication.rb

Instance Attribute Summary

Attributes inherited from Base

#api

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from BalihooLpcClient::Request::Base

Instance Method Details

#authenticate!Object



4
5
6
7
8
# File 'lib/balihoo_lpc_client/request/authentication.rb', line 4

def authenticate!
  response = self.class.post('/genClientAPIKey', opts).parsed_response
  handle_errors_with(klass: AuthenticationError, response: response)
  handle_success(response: response)
end