Example #1
0
 /**
  * Constructor
  *
  * @param $clientId
  * @param $clapiKey
  */
 public function __construct(Configuration $configuration)
 {
     $this->soapClient = new \SoapClient(null, array('location' => Configuration::URL, 'uri' => Configuration::URL, 'trace' => 1, 'cache_wsdl' => WSDL_CACHE_NONE));
     $this->auth($configuration->getClientId(), $configuration->getClapiKey(), null);
 }
Example #2
0
 /**
  * Constructor
  *
  * @param string $clientId
  * @param string $apiKey
  * @param ImageVerificator $imageVerificator
  */
 public function __construct(Configuration $configuration, ImageVerificator $imageVerificator)
 {
     $this->clientId = $configuration->getClientId();
     $this->apiKey = $configuration->getApiKey();
     $this->imageVerificator = $imageVerificator;
 }