require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Bearer
$config = edenai\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = edenai\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new edenai\Api\OCRApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
$files = "files_example"; // string |
$providers = "providers_example"; // string |
$language = "language_example"; // string |
$result = $apiInstance->ocrInvoice($files, $providers, $language);
echo 'Exception when calling OCRApi->ocrInvoice: ', $e->getMessage(), PHP_EOL;