EkomiApi

The WooCommerce Germanized Ekomi Api class.

Defined (1)

The class is defined in the following location(s).

/includes/libraries/Ekomi/Api.php  
  1. class Api{ 
  2. /** 
  3. * @var ServiceInterface 
  4. */ 
  5. public $service; 
  6.  
  7. /** 
  8. * Api constructor. 
  9. * @param $apiId 
  10. * @param $apiKey 
  11. * @param string $type 
  12. */ 
  13. public function __construct($apiId, $apiKey, $type='SOAP') { 
  14. $this->service = Service::getInstance($type); 
  15. $this->service->setAuth($apiId, $apiKey); 
  16.  
  17. /** 
  18. * @param RequestInterface $apiCall 
  19. * @return mixed 
  20. */ 
  21. public function exec(RequestInterface $apiCall) { 
  22. return $this->service->exec($apiCall);