All URIs are relative to https://integration.api.airkey.evva.com:443/cloud
Method | HTTP request | Description |
---|---|---|
getLock | GET /v1/locks/{lockId} | Gets information of a specific lock. |
getLocks | GET /v1/locks | Gets information of all locks. |
updateLock | PUT /v1/locks/{lockId} | Updates the provided lock. |
\Coucounco\Airkey\Swagger\Client\Model\Lock getLock($lock_id)
Gets information of a specific lock.
Returns a specific lock with its information.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: X-API-Key
$config = Coucounco\Airkey\Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Coucounco\Airkey\Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new Coucounco\Airkey\Swagger\Client\Api\LocksApi(
// 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
);
$lock_id = 789; // int | Unique identifier of the lock
try {
$result = $apiInstance->getLock($lock_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LocksApi->getLock: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
lock_id | int | Unique identifier of the lock |
\Coucounco\Airkey\Swagger\Client\Model\Lock
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Coucounco\Airkey\Swagger\Client\Model\LockPagingList getLocks($offset, $limit, $calendar_id)
Gets information of all locks.
Returns a list of all locks with their information, sorted by lock id in ascending order. Maintenance tasks of a lock can be determined by using the maintenance-tasks resource (with lockId as query parameter for a single lock).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: X-API-Key
$config = Coucounco\Airkey\Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Coucounco\Airkey\Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new Coucounco\Airkey\Swagger\Client\Api\LocksApi(
// 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
);
$offset = 56; // int | Offset for paging
$limit = 56; // int | Limit of result size
$calendar_id = 789; // int | Filter locks by holiday calendar id
try {
$result = $apiInstance->getLocks($offset, $limit, $calendar_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LocksApi->getLocks: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
offset | int | Offset for paging | [optional] |
limit | int | Limit of result size | [optional] |
calendar_id | int | Filter locks by holiday calendar id | [optional] |
\Coucounco\Airkey\Swagger\Client\Model\LockPagingList
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Coucounco\Airkey\Swagger\Client\Model\Lock updateLock($lock_id, $body)
Updates the provided lock.
Updates the provided lock and returns the new version of the lock object.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: X-API-Key
$config = Coucounco\Airkey\Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Coucounco\Airkey\Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new Coucounco\Airkey\Swagger\Client\Api\LocksApi(
// 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
);
$lock_id = 789; // int | Unique identifier of the lock
$body = new \Coucounco\Airkey\Swagger\Client\Model\Lock(); // \Coucounco\Airkey\Swagger\Client\Model\Lock | Lock to be updated
try {
$result = $apiInstance->updateLock($lock_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LocksApi->updateLock: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
lock_id | int | Unique identifier of the lock | |
body | \Coucounco\Airkey\Swagger\Client\Model\Lock | Lock to be updated |
\Coucounco\Airkey\Swagger\Client\Model\Lock
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]