Custom API (deprecated)
Quick-Start
use Mindee\Client;
use Mindee\Product\Custom\CustomV1;
use Mindee\Input\PredictMethodOptions;
// Init a new client
$mindeeClient = new Client("my-api-key");
// Load a file from disk
$inputSource = $mindeeClient->sourceFromPath("/path/to/the/file.ext");
// Create a custom endpoint
$customEndpoint = $mindeeClient->createEndpoint(
"my-endpoint",
"my-account",
// "my-version" // Optional
);
// Add the custom endpoint to the prediction options.
$predictOptions = new PredictMethodOptions();
$predictOptions->setEndpoint($customEndpoint);
// Parse the file
$apiResponse = $mindeeClient->parse(CustomV1::class, $inputSource, $predictOptions);
echo strval($apiResponse->document);
// Iterate over all the fields in the document
foreach ($result->document->fields as field_name => field_values)
{
echo "$field_name = $field_values";
}Custom Endpoints
Field Types
Custom Fields
List Field
Classification Field
Attributes
Fields
Classifications
🧪 Custom Line Items
columnsToLineItems()
CustomLine
Last updated
Was this helpful?

