<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Tinq\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Tinq\Api\Workflows(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$workflow_slug = 'workflow_slug_example'; // string
$content_type = application/json; // string
$accept = application/json; // string
$body = array('key' => new \stdClass); // object
try {
$apiInstance->executeWorkflow($workflow_slug, $content_type, $accept, $body);
} catch (Exception $e) {
echo 'Exception when calling Workflows->executeWorkflow: ', $e->getMessage(), PHP_EOL;
}