HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /var/www/devs.lapieza.net/vendor/mindee/mindee/docs/code_samples/
Upload File :
Current File : /var/www/devs.lapieza.net/vendor/mindee/mindee/docs/code_samples/workflow_execution.txt
<?php


use Mindee\Client;
use Mindee\Input\WorkflowOptions;

$workflowId = "workflow-id";

// Init a new client
$mindeeClient = new Client("my-api-key");

// Load a file from disk
$inputSource = $mindeeClient->sourceFromPath("/path/to/the/file.ext");


// Send the file to the workflow
$workflowResponse = $mindeeClient->executeWorkflow($inputSource, $workflowId);

// Alternatively, add an alias and priority to the document:
// $options = new WorkflowOptions('document-alias', "document-priority");
// $workflowResponse = $mindeeClient->executeWorkflow($inputSource, $workflowId, $options);


echo $workflowResponse->execution;