Skip to content
Snippets Groups Projects
Commit ec2660e4 authored by Σταύρος Παπαδάκης's avatar Σταύρος Παπαδάκης
Browse files

Move samples apart

parent 3dfa0a8b
No related branches found
No related tags found
No related merge requests found
<?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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment