$boxUrl, 'file_id' => $fileId, 'username' => $username, 'timestamp' => date('Y-m-d H:i:s') ]; $debugInfo['sent_data'] = $data; // Initialize cURL session $ch = curl_init($webhookUrl); // Set cURL options curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Content-Type: application/json' ]); // Execute cURL request $response = curl_exec($ch); $debugInfo['raw_response'] = $response; // Check for errors if (curl_errno($ch)) { $error = 'cURL Error: ' . curl_error($ch); $debugInfo['curl_error'] = curl_error($ch); } else { $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); $debugInfo['http_code'] = $httpCode; if ($httpCode >= 200 && $httpCode < 300) { // Strip markdown code fences if present $cleanedResponse = preg_replace('/^```json\s*/s', '', $response); $cleanedResponse = preg_replace('/\s*```$/s', '', $cleanedResponse); $debugInfo['cleaned_response'] = $cleanedResponse; $result = json_decode($cleanedResponse, true); $debugInfo['decoded_result'] = $result; $debugInfo['json_decode_error'] = json_last_error_msg(); } else { $error = "HTTP Error: $httpCode - $response"; } } // Close cURL session curl_close($ch); } else { $error = "Could not extract file ID from the provided Box URL."; } } ?> HP STUDIO COPY PROOFING TOOL

HP STUDIO COPY PROOFING TOOL

Only image files supported (gif, jpeg, jpg, png, webp)

Result

Extracted Information:

Box URL:

File ID:

Document Analysis Results:

Document Summary
Language: ()
Issues Found:
Language Detection
() Spelling:
Grammar Issues
:
Spelling Errors
Word:
Context:
Correction:
Text Evaluation
Needs Correction:
""
Approved Text
'; foreach ($analysis['text_evaluation'] as $text): if ($text['status'] === 'good'): $goodTexts = true; ?>
""
No text evaluations available.
Response Data