获取投屏码

获取投屏码

1. 接口描述

接口名称:

/confopenapi/room/device/get/screen/code

发送方式:

POST

参数格式:

accept: application/json;content-type: application/json

2. 输入参数

Http Header

参数名 必选 类型 说明
token 接口调用鉴权参数 也可以放在http body中

HttpBody

参数名 必选 类型 说明
deviceId int 全时设备ID
expireTime int 投屏码过期时间, 单位秒, 默认1800

3. 示例

传参示例

{
    "deviceId":1000

4. 返回参数

参数名 类型 说明
status int 0:成功,非0失败
result json 查询结果

result参数说明

参数名 类型 说明
deviceId int 设备ID
screenCode string 投屏码
expireTime int 投屏码过期时间,单位秒
expireDate int 投屏码有效期截止时间,时间戳,精确到秒

返回示例

{
  {
    "status": 0,
    "result": {
        "deviceId":1000,
        "screenCode": "6MXXXZ",
        "expireTime": 1800,
        "expireDate": 1741230317
    },
    "msg": "success",
    "request_id": "confopenapiserver-3232248341-1741227311.288118700.81",
    "reqid": "confopenapiserver-3232248341-1741227311.288118700.81",
    "timestamp": 1741227311300,
    "request_duration": "9.2193909s"
}
}