Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username = "Nimrod";
- $password = "Orco2010";
- $url = "https://platform.trafficoni.com/api/pull/customers";
- $key = "264388973aaa9b2f9eb2aa84a9c7382e";
- $source_id=41;
- $orderId = 252;
- $jsonObj = array(
- 'from' => "2018-11-27 00:00:00",
- 'to' => date('Y-m-d 23:59:59'),
- 'type' => '3',
- "offset" => 0
- );
- $curl = curl_init($url);
- curl_setopt_array($curl, array(
- CURLOPT_RETURNTRANSFER => 1,
- CURLOPT_POST => 1,
- CURLOPT_HTTPHEADER => array("x-trackbox-username:".$username, "x-trackbox-password:".$password, "x-api-key:".$key, "Content-type:application/json"),
- CURLOPT_POSTFIELDS => json_encode($jsonObj),
- ));
- $result = curl_exec($curl);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement