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();
 }
Exemplo n.º 2
0
 /**
  * @param string $apiKey
  */
 public function __construct($apiKey)
 {
     $this->pricingSessionUrl = self::API_HOST . '/apiservices/pricing/v1.0';
     parent::__construct($apiKey);
 }
Exemplo n.º 3
0
 /**
  * @param string $apiKey
  */
 public function __construct($apiKey)
 {
     $this->pricingSessionUrl = self::API_HOST . '/apiservices/carhire/liveprices/v2';
     parent::__construct($apiKey);
 }
Exemplo n.º 4
0
 public function __construct($clientId, $clientSecret, $trackingId)
 {
     parent::__construct($clientId, $clientSecret, $trackingId);
 }