Get issue card hotelInfo
https://cnapi.ttlock.com/v3/cardEncoder/getHotelInfo
Users can request this API to get the hotelInfo for card issuance after creating a hotel in the TTLock APP. Each user account can only create one hotel, This function need pay to use
User can gain locks' building No, Floor No and sector via Get lock list or Get lock detail API
1 Request example
javascript
curl --location -g --request GET 'https://cnapi.ttlock.com/v3/cardEncoder/getHotelInfo?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 |
|---|---|---|
| hotelInfo | String | HotelInfo, use to issue hotel card |
{
"hotelInfo": "LTI2LC0yOSwtMzAsLTMwLC01LC03NSwtMjcsLTc0LC03NiwtNzYsLTE4LC0xOCwtMjgsLTE4LC03NiwtMjUsLTMxLC01LC0yNSwtMjcsLTMyLC0zMSwtMjgsLTI4LC0xNywtMzIsLTc3LC03OCwtMjYsLTc4LC03OCwtMjcsLTI3LC0yNiwtNzcsLTI4LC0yOSwtNzQsLTE4LC0xOCwtNzksLTE3LC0yNiwtMzAsLTI1LC0zMCwtMjYsLTMxLC03NywtNzUsLTUsLTI3LC0xNywtMjUsLTE3LC0yOSwtMzAsLTI4LC0yNSw3Mw=="
}