All URIs are relative to https://YOUR_SUPLA_SERVER/api/v3, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| createAccessIdentifier() | POST /accessids | Create a new Access Identifier |
| deleteAccessIdentifier() | DELETE /accessids/{id} | Delete the access identifier |
| getAccessIdentifier() | GET /accessids/{id} | Get AID by ID |
| getAccessIdentifiers() | GET /accessids | Get Access Identifiers |
| updateAccessIdentifier() | PUT /accessids/{id} | Update the access identifier |
createAccessIdentifier(): \Supla\ApiClient\Model\AccessIdentifierCreate a new Access Identifier
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure Bearer authorization: BearerAuth
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Supla\ApiClient\Api\AccessIdentifiersApi(
// 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->createAccessIdentifier();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccessIdentifiersApi->createAccessIdentifier: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
\Supla\ApiClient\Model\AccessIdentifier
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteAccessIdentifier($id)Delete the access identifier
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure Bearer authorization: BearerAuth
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Supla\ApiClient\Api\AccessIdentifiersApi(
// 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 = 56; // int | ID
try {
$apiInstance->deleteAccessIdentifier($id);
} catch (Exception $e) {
echo 'Exception when calling AccessIdentifiersApi->deleteAccessIdentifier: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | ID |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getAccessIdentifier($id, $include): \Supla\ApiClient\Model\AccessIdentifierGet AID by ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure Bearer authorization: BearerAuth
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Supla\ApiClient\Api\AccessIdentifiersApi(
// 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 = 56; // int | ID
$include = array('include_example'); // string[] | List of extra fields to include in the response.
try {
$result = $apiInstance->getAccessIdentifier($id, $include);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccessIdentifiersApi->getAccessIdentifier: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | ID | |
| include | string[] | List of extra fields to include in the response. | [optional] |
\Supla\ApiClient\Model\AccessIdentifier
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getAccessIdentifiers($include): \Supla\ApiClient\Model\AccessIdentifier[]Get Access Identifiers
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure Bearer authorization: BearerAuth
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Supla\ApiClient\Api\AccessIdentifiersApi(
// 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
);
$include = array('include_example'); // string[] | List of extra fields to include in the response.
try {
$result = $apiInstance->getAccessIdentifiers($include);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccessIdentifiersApi->getAccessIdentifiers: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| include | string[] | List of extra fields to include in the response. | [optional] |
\Supla\ApiClient\Model\AccessIdentifier[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateAccessIdentifier($id, $updateAccessIdentifierRequest): \Supla\ApiClient\Model\AccessIdentifierUpdate the access identifier
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure Bearer authorization: BearerAuth
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Supla\ApiClient\Api\AccessIdentifiersApi(
// 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 = 56; // int | ID
$updateAccessIdentifierRequest = new \Supla\ApiClient\Model\UpdateAccessIdentifierRequest(); // \Supla\ApiClient\Model\UpdateAccessIdentifierRequest
try {
$result = $apiInstance->updateAccessIdentifier($id, $updateAccessIdentifierRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccessIdentifiersApi->updateAccessIdentifier: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | ID | |
| updateAccessIdentifierRequest | \Supla\ApiClient\Model\UpdateAccessIdentifierRequest |
\Supla\ApiClient\Model\AccessIdentifier
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]