'u7s5tghj632n3-1265-7ht5-awtsg624fbs7', "client_id"=> 'API-DAPDA_dev', "json" => $json ]; */ $result = curlPost($url,$json,$headers); print_r($result); function curlPost($url,$data,$headers) { $ch = curl_init(); $timeout = 30; curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_POST, TRUE); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $response = curl_exec ($ch); if (curl_errno($ch)) { echo 'Error:' . curl_error($ch); } curl_close ($ch); return json_decode($response); } ?>