|
@@ -787,6 +787,7 @@ $payload = array("image" => $image_data); // Base64 encoded file content or imag
|
|
|
$ch = curl_init($API_URL);
|
|
$ch = curl_init($API_URL);
|
|
|
curl_setopt($ch, CURLOPT_POST, true);
|
|
curl_setopt($ch, CURLOPT_POST, true);
|
|
|
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
|
|
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
|
|
|
|
|
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
|
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
|
|
$response = curl_exec($ch);
|
|
$response = curl_exec($ch);
|
|
|
curl_close($ch);
|
|
curl_close($ch);
|