function __construct($url)
 {
     parent::__construct($url);
     $this->curl = curl_init($url);
     curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
     curl_setopt($this->curl, CURLOPT_COOKIEFILE, '');
     $this->cookies = array();
 }
Пример #2
0
 /**
  * @param string $apiKey
  */
 public function __construct($apiKey)
 {
     $this->pricingSessionUrl = self::API_HOST . '/apiservices/pricing/v1.0';
     parent::__construct($apiKey);
 }
Пример #3
0
 /**
  * @param string $apiKey
  */
 public function __construct($apiKey)
 {
     $this->pricingSessionUrl = self::API_HOST . '/apiservices/carhire/liveprices/v2';
     parent::__construct($apiKey);
 }
Пример #4
0
 public function __construct($clientId, $clientSecret, $trackingId)
 {
     parent::__construct($clientId, $clientSecret, $trackingId);
 }