获取宾客蓝牙开门指令
https://api.orbitaiot.com/open/v1/dev/guestBlueOpen/{tid}
1. HTTP请求方法及示例
| POST /open/v1/dev/guestBlueOpen/151 Host: api.orbitaiot.com Content-Type: application/json Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxNiIsImp0aSI6Ijg3MjYxNmExMGFlYzdmMmNlY2RhM2NiOGRhNWU0YTVhZTI1MjdmYm......... { "antilock_permission":1, "start_time":0, "end_time":0} |
2. 参数说明
路径参数
| 参数名 | 数据类型 | 是否必需 | 备注 |
| tid | Int | 是 | 设备tid |
Headers参数
| 字段 | 类型 | 是否必需 | 值 |
| Content-Type | String | 是 | application/json |
| Authorization | String | 是 | Bearer + 空格 + access_token值 |
Body参数
| 字段 | 类型 | 是否必需 | 描述 |
| antilock_permission | Int | Y | 反锁权限 0:没有 1:有 |
| start_time | Int | Y | 开始时间 时间戳 (传开始入住时间,跟发卡的开始时间一样) |
| end_time | Int | Y | 结束时间 时间戳 (传离店时间 跟发卡的离店时间一样) |
| is_card | Int | Y | 是否顶替 0:不顶替(之前有效的客人卡蓝牙钥匙可用) 1:顶替(之前有效的客人卡蓝牙钥匙不可用) |
备注:开始时间最好是入住时间时间转成十位的时间戳
3. 返回参数及示例
| 参数 | 类型 | 描述 |
| code | Int | |
| data | String | |
| message | String | |
| bin | String | 蓝牙开锁写入指令 |
{
"code": 0,
"message": "",
"data": { "bin": "fd8801020101c5fc0000002f000031e48f149263c327a8ec4794cceba44408472975f2cf89b195b2cea82f6d2bbeabf7fe"
}
}
4. 接口示例

