@@ 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 | { |
@@ 265-277 (lines=13) @@ | ||
262 | /** |
|
263 | * Api call CommissionJunction |
|
264 | */ |
|
265 | private function _apiCall($url) |
|
266 | { |
|
267 | $ch = curl_init(); |
|
268 | curl_setopt($ch, CURLOPT_URL, $url); |
|
269 | curl_setopt($ch, CURLOPT_POST, FALSE); |
|
270 | curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); |
|
271 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); |
|
272 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); |
|
273 | curl_setopt($ch, CURLOPT_HTTPHEADER, array("Authorization: " . $this->_passwordApi)); |
|
274 | $curl_results = curl_exec($ch); |
|
275 | curl_close($ch); |
|
276 | return $curl_results; |
|
277 | } |
|
278 | ||
279 | public function getTrackingParameter() |
|
280 | { |