Generic clients

parent c5862ead
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\DefaultApi();
$doc_id = "doc_id_example"; // string |
try {
$result = $api_instance->getDocData($doc_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getDocData: ', $e->getMessage(), PHP_EOL;
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\DefaultApi();
$doc_id = "doc_id_example"; // string |
try {
$result = $api_instance->getPdf($doc_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getPdf: ', $e->getMessage(), PHP_EOL;
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\DefaultApi();
$body = new \Swagger\Client\Model\Credentials(); // \Swagger\Client\Model\Credentials | Credentials
try {
$result = $api_instance->pauth($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->pauth: ', $e->getMessage(), PHP_EOL;
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\IdApi();
$body = new \Swagger\Client\Model\Protocolin(); // \Swagger\Client\Model\Protocolin | Document Metadata
try {
$result = $api_instance->postProtocol($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling IdApi->postProtocol: ', $e->getMessage(), PHP_EOL;
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\DefaultApi();
$body = new \Swagger\Client\Model\SearchModel(); // \Swagger\Client\Model\SearchModel |
try {
$result = $api_instance->seacrhDocuments($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->seacrhDocuments: ', $e->getMessage(), PHP_EOL;
}
<?php
return [
'username' => 'test',
'password' => '123456'
];
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment