<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
amandiobm / rustici-engine-api-v2-client-php example snippets
onfigure HTTP basic authorization: basic
$config = RusticiSoftware\Engine\V2\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: oauth
$config = RusticiSoftware\Engine\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new RusticiSoftware\Engine\V2\Api\AboutApi(
// 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
);
$engine_tenant_name = "engine_tenant_name_example"; // string | optional tenant for this request
try {
$result = $apiInstance->getAbout($engine_tenant_name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AboutApi->getAbout: ', $e->getMessage(), PHP_EOL;
}