All URIs are relative to https://YOUR_SUPLA_SERVER/api/v3
.
Method | HTTP request | Description |
---|---|---|
getActionsEnum() | GET /enum/actions | |
getChannelTypesEnum() | GET /enum/channel-types | |
getFunctionsEnum() | GET /enum/functions |
getActionsEnum(): \Supla\ApiClient\Model\ChannelFunctionAction[]
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: BearerAuth
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: OAuth2
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Supla\ApiClient\Api\EnumsApi(
// 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
);
try {
$result = $apiInstance->getActionsEnum();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EnumsApi->getActionsEnum: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\Supla\ApiClient\Model\ChannelFunctionAction[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getChannelTypesEnum(): \Supla\ApiClient\Model\ChannelType[]
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: BearerAuth
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: OAuth2
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Supla\ApiClient\Api\EnumsApi(
// 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
);
try {
$result = $apiInstance->getChannelTypesEnum();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EnumsApi->getChannelTypesEnum: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\Supla\ApiClient\Model\ChannelType[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getFunctionsEnum(): \Supla\ApiClient\Model\ChannelFunction[]
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: BearerAuth
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: OAuth2
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Supla\ApiClient\Api\EnumsApi(
// 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
);
try {
$result = $apiInstance->getFunctionsEnum();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EnumsApi->getFunctionsEnum: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\Supla\ApiClient\Model\ChannelFunction[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]