API_BASE."/DigiKala.php", CURLOPT_RETURNTRANSFER => $parameters, CURLOPT_POST => true, ]); $response = curl_exec($cURL); curl_close($cURL); return json_decode($response, true); } # Search Product: echo json_encode(DigiKala_Request("search", ['query' => "neztech"])); # Get Product Information: echo json_encode(DigiKala_Request("informtion", ['product_id' => "580823"])); unlink("error_log"); ?>