Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/code_samples/v2_classification.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $classificationParams = new ClassificationParameters(
// Load a file from disk
$inputSource = new PathInput($filePath);

// Upload the file
// Send for processing using polling
$response = $mindeeClient->enqueueAndGetResult(
ClassificationResponse::class,
$inputSource,
Expand Down
2 changes: 1 addition & 1 deletion docs/code_samples/v2_crop.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $cropParams = new CropParameters(
// Load a file from disk
$inputSource = new PathInput($filePath);

// Upload the file
// Send for processing using polling
$response = $mindeeClient->enqueueAndGetResult(
CropResponse::class,
$inputSource,
Expand Down
6 changes: 4 additions & 2 deletions docs/code_samples/v2_extraction_polling.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use Mindee\ClientV2;
use Mindee\Input\InferenceParameters;
use Mindee\Input\PathInput;
use Mindee\Parsing\V2\InferenceResponse;

$apiKey = "MY_API_KEY";
$filePath = "/path/to/the/file.ext";
Expand Down Expand Up @@ -33,8 +34,9 @@ $inferenceParams = new InferenceParameters(
// Load a file from disk
$inputSource = new PathInput($filePath);

// Upload the file
$response = $mindeeClient->enqueueAndGetInference(
// Send for processing using polling
$response = $mindeeClient->enqueueAndGetResult(
InferenceResponse::class,
$inputSource,
$inferenceParams
);
Expand Down
2 changes: 1 addition & 1 deletion docs/code_samples/v2_extraction_webhook.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ $inferenceParams = new InferenceParameters(
// Load a file from disk
$inputSource = new PathInput($filePath);

// Upload the file
// Send for processing
$response = $mindeeClient->enqueue(
$inputSource,
$inferenceParams
Expand Down
2 changes: 1 addition & 1 deletion docs/code_samples/v2_ocr.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $ocrParams = new OcrParameters(
// Load a file from disk
$inputSource = new PathInput($filePath);

// Upload the file
// Send for processing using polling
$response = $mindeeClient->enqueueAndGetResult(
OcrResponse::class,
$inputSource,
Expand Down
2 changes: 1 addition & 1 deletion docs/code_samples/v2_split.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $splitParams = new SplitParameters(
// Load a file from disk
$inputSource = new PathInput($filePath);

// Upload the file
// Send for processing using polling
$response = $mindeeClient->enqueueAndGetResult(
SplitResponse::class,
$inputSource,
Expand Down
Loading