@@ 243-255 (lines=13) @@ | ||
240 | /** |
|
241 | * Api call CommissionJunction |
|
242 | */ |
|
243 | private function _apiCall($url) |
|
244 | { |
|
245 | $ch = curl_init(); |
|
246 | curl_setopt($ch, CURLOPT_URL, $url); |
|
247 | curl_setopt($ch, CURLOPT_POST, FALSE); |
|
248 | curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); |
|
249 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); |
|
250 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); |
|
251 | curl_setopt($ch, CURLOPT_HTTPHEADER, array("Authorization: " . $this->_passwordApi)); |
|
252 | $curl_results = curl_exec($ch); |
|
253 | curl_close($ch); |
|
254 | return $curl_results; |
|
255 | } |
|
256 | ||
257 | public function getTrackingParameter() |
|
258 | { |
@@ 240-252 (lines=13) @@ | ||
237 | /** |
|
238 | * Api call CommissionJunction |
|
239 | */ |
|
240 | private function _apiCall($url) |
|
241 | { |
|
242 | $ch = curl_init(); |
|
243 | curl_setopt($ch, CURLOPT_URL, $url); |
|
244 | curl_setopt($ch, CURLOPT_POST, FALSE); |
|
245 | curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); |
|
246 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); |
|
247 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); |
|
248 | curl_setopt($ch, CURLOPT_HTTPHEADER, array("Authorization: " . $this->_passwordApi)); |
|
249 | $curl_results = curl_exec($ch); |
|
250 | curl_close($ch); |
|
251 | return $curl_results; |
|
252 | } |
|
253 | ||
254 | public function getTrackingParameter() |
|
255 | { |