Skip to content

Latest commit

 

History

History
executable file
·
235 lines (160 loc) · 6.01 KB

ClientSettingsApi.md

File metadata and controls

executable file
·
235 lines (160 loc) · 6.01 KB

OpenAPI\Client\ClientSettingsApi

All URIs are relative to https://topal.vitan.ch:9001, except if the operation defines another base path.

Method HTTP request Description
clientSettingsDelete() DELETE /api/v1/clients/{clientId}/settings/{name} Delete settings by name
clientSettingsGet() GET /api/v1/clients/{clientId}/settings get list of settings names
clientSettingsGet_0() GET /api/v1/clients/{clientId}/settings/{name} get settings by names
clientSettingsPost() POST /api/v1/clients/{clientId}/settings/{name} save settings by name

clientSettingsDelete()

clientSettingsDelete($name, $client_id): object

Delete settings by name

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Topal\Client\Api\ClientSettingsApi(
    // 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()
);
$name = 'name_example'; // string
$client_id = 'client_id_example'; // string

try {
    $result = $apiInstance->clientSettingsDelete($name, $client_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ClientSettingsApi->clientSettingsDelete: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
name string
client_id string

Return type

object

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

clientSettingsGet()

clientSettingsGet($client_id): string[]

get list of settings names

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Topal\Client\Api\ClientSettingsApi(
    // 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()
);
$client_id = 'client_id_example'; // string

try {
    $result = $apiInstance->clientSettingsGet($client_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ClientSettingsApi->clientSettingsGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
client_id string

Return type

string[]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

clientSettingsGet_0()

clientSettingsGet_0($name, $client_id): string

get settings by names

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Topal\Client\Api\ClientSettingsApi(
    // 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()
);
$name = 'name_example'; // string
$client_id = 'client_id_example'; // string

try {
    $result = $apiInstance->clientSettingsGet_0($name, $client_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ClientSettingsApi->clientSettingsGet_0: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
name string
client_id string

Return type

string

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

clientSettingsPost()

clientSettingsPost($name, $client_id, $value): string

save settings by name

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Topal\Client\Api\ClientSettingsApi(
    // 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()
);
$name = 'name_example'; // string
$client_id = 'client_id_example'; // string
$value = array('key' => new \stdClass); // object

try {
    $result = $apiInstance->clientSettingsPost($name, $client_id, $value);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ClientSettingsApi->clientSettingsPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
name string
client_id string
value object

Return type

string

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, text/json, application/x-www-form-urlencoded
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]