Move samples apart

parent 3dfa0a8b
<?php
require_once(__DIR__ . '/vendor/autoload.php');
require_once(__DIR__ . '/../vendor/autoload.php');
$settings = require(__DIR__ . '/settings.php');
$api_instance = new Swagger\Client\Api\DefaultApi();
$body = new \Swagger\Client\Model\Credentials(); // \Swagger\Client\Model\Credentials | Credentials
$body = new \Swagger\Client\Model\Credentials($settings);
try {
$result = $api_instance->pauth($body);
print_r($result);
echo "Το API key είναι: ", $result->getApiKey();
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->pauth: ', $e->getMessage(), PHP_EOL;
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
require_once(__DIR__ . '/../vendor/autoload.php');
$settings = require(__DIR__ . '/settings.php');
$api_instance = new Swagger\Client\Api\DefaultApi();
$body = new \Swagger\Client\Model\SearchModel(); // \Swagger\Client\Model\SearchModel |
$body = new \Swagger\Client\Model\SearchModel($settings);
try {
$result = $api_instance->searchDocuments($body);
......
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