Get ICKey
https://euapi.ttlock.com/v3/cardEncoder/getIcKey
Users can request this API to get the ICKey which use for encrypting card sectors in third-party card encoder after creating a hotel in the TTLock APP. Each user account can only create one hotel, This function need pay to use
1 Request example
javascript
curl --location -g --request GET 'https://euapi.ttlock.com/v3/cardEncoder/getIcKey?clientId=fd2ff35ee3d8424c8665c07b7b9a7f45&accessToken=780f7671b6e6be3010d9787f19207aca&date=1625025703000'2 Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| clientId | String | Y | client_id from Create application |
| accessToken | String | Y | Access token,refer to: Get access token |
| date | Long | Y | Current time (timestamp in millisecond) |
3 Response and example
| Parameter | Type | Description |
|---|---|---|
| icKey | String | ICKey, for encrypting card sectors for third-party card encoder |
x
{
"icKey": "125edbd47f6a"
}