All URIs are relative to /
Method | HTTP request | Description |
---|---|---|
getKimaipluginDemoApiDemoCget | GET /api/demos | Returns a collection of demo entities |
getKimaipluginDemoApiDemoGet | GET /api/demos/{id} | Returns one demo entity |
\Swagger\Client\Model\DemoEntity[] getKimaipluginDemoApiDemoCget($counter)
Returns a collection of demo entities
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP bearer authorization: bearer
$config = Swagger\Client\Configuration::getDefaultConfiguration()
->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\DemoApi(
// 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
);
$counter = "counter_example"; // string | The counter to be included in the answer (default: 1)
try {
$result = $apiInstance->getKimaipluginDemoApiDemoCget($counter);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DemoApi->getKimaipluginDemoApiDemoCget: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
counter | string | The counter to be included in the answer (default: 1) | [optional] |
\Swagger\Client\Model\DemoEntity[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\DemoEntity getKimaipluginDemoApiDemoGet($id)
Returns one demo entity
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP bearer authorization: bearer
$config = Swagger\Client\Configuration::getDefaultConfiguration()
->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\DemoApi(
// 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
);
$id = "id_example"; // string | Demo ID to fetch
try {
$result = $apiInstance->getKimaipluginDemoApiDemoGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DemoApi->getKimaipluginDemoApiDemoGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | Demo ID to fetch |
\Swagger\Client\Model\DemoEntity
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]