开始使用
  • English
  • 简体中文
前往官网
开始使用
  • English
  • 简体中文
前往官网
  • 开始使用
  • 核心概念
  • 开发指南
  • 设备能力与事件参考
  • API 参考
    • 公共约定
    • HTTP 开发规范
    • accessToken(管理员 Token)
    • API 请求示例
    • 错误码
    • 接口调用限额
    • 账号与授权
    • 设备接口
    • 直播地址
    • 推送配置
    • 云存储
    • 资源池额度管理
    • 旧版接口(不再维护)
      • 门锁(遗留)
      • 告警消息(遗留)
      • 设备查询(已弃用)
        • checkDeviceBindOrNot(查询设备绑定状态)
        • deviceOnline(获取设备在线状态)
        • listDeviceDetailsByIds(批量查询设备详情)
        • listDeviceDetailsByPage(分页查询设备详情)
        • unBindDeviceInfo(获取未绑定设备信息)
        • upgradeProcessDevice(获取设备升级状态与进度)
        • bindDeviceChannelInfo(获取单个设备通道详情)
        • bindDeviceInfo(单个设备信息获取)
        • bindDeviceList(批量设备信息获取)
        • deviceBaseDetailList(批量获取 easy4ip 应用设备详情)
        • deviceBaseList(分页获取 easy4ip 应用设备通道基础信息)
        • deviceList(获取设备列表)
        • deviceOpenDetailList(批量获取开放平台设备详情)
        • deviceOpenList(分页获取开放平台设备通道基础信息)
        • deviceVersionList(获取设备版本与可升级信息)
        • listDeviceAbility(批量获取设备能力集)
        • queryBaseDeviceChannelInfo(获取 easy4ip 应用设备基础通道信息)
        • queryOpenDeviceChannelInfo(获取开放平台设备基础通道信息)
        • shareDeviceList(分页获取 easy4ip 应用分享设备列表)
      • 设备维护(遗留)
      • 设备操作(遗留)
      • 设备使能(遗留)
      • 动检配置(遗留)
      • 收藏点(遗留)
      • 定时巡航(遗留)
      • 本地录像配置(遗留)
      • 音量(遗留)
      • 存储(遗留)
      • 图像与视频(遗留)
      • 时区(遗留)
      • Wi-Fi(遗留)
      • 本地录像查询(遗留)
  • SDK 与工具
  • 方案
  • 平台与支持
本页目录
功能说明
请求地址
请求格式
请求参数
请求示例
返回 data 字段
响应示例
错误码
相关参考

deviceBaseDetailList(批量获取 easy4ip 应用设备详情)

deviceBaseDetailList:批量获取 easy4ip 应用设备详情

遗留 HTTP 保留: 供已有对接继续调用。新接入请见 设备 API 总览。

遗留 HTTP: 供已有对接继续调用。新接入请从 设备 API 总览与 V2 查询方法选型。

相关当前接口: 新接入也可参考 按 ID 批量详情(device.detail.list)。 本 HTTP 方法仍保留在当前路径,权威材料未给出一对一替代。

功能说明

按设备序列号、通道号列表、配件号列表批量获取 easy4ip 应用添加或分享设备的详细信息。

请求地址

https://openapi-[DataCenter].easy4ip.com/openapi/deviceBaseDetailList

请求格式

POST JSON 请求体见 请求约定;签名见 签名。

请求参数

参数名参数类型是否必填默认值合法取值参数说明
tokenString是管理员 accessToken
deviceList.deviceIdString是设备序列号列表,最多查询 8 台
deviceList.channelListString是"1,2,3,4,5":逗号分隔的多个通道号通道号列表
deviceList.apListString否"1,2,3,4,5":逗号分隔的多个配件号配件 ID 列表

请求示例

{
 "id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af",
 "system":{
 "ver":"1.0",
 "appId":"lcdxxxxxxxxx",
 "sign": "xjhCQBoJ9hRDsCjyDcHjtDNzRZ3ZJezcawsfWeiaoxU=",
 "time":1599031074,
 "nonce":"8ec8a7bd1d1c95420de20d92422d457d"
 },
 "params":{
 "token":"At_00006acr3456d12312d3grf60147de7ec",
 "deviceList":[{
 "deviceId":"TESTQWERXXXX",
 "channelList":"0",
 "apList":"TESTQWERXXXX"
 }]
 }
}

返回 data 字段

字段名字段类型字段说明
countInteger本次查询的设备数量
deviceList.deviceIdString设备序列号
deviceList.statusString设备状态:online 在线,offline 离线,sleep 休眠,upgrading 升级中
deviceList.deviceModelString设备型号
deviceList.catalogString设备品类 [NVR/DVR/HCVR/IPC/SD/IHG/ARC]
deviceList.brandString设备品牌:lechange 为 Imou 设备,general 为通用设备
deviceList.versionString设备软件版本号
deviceList.nameString设备名称
deviceList.abilityString设备能力项,逗号分隔,详见设备能力集说明
deviceList.accessTypeString设备接入类型:空 表示开放平台程序接入;Lechange 表示乐橙/Imou 常规接入设备;Easy4IP 表示 Easy4IP 程序设备;P2P 表示 P2P 程序设备
deviceList.encryptModeString加密模式:0 默认加密,1 用户自定义加密
deviceList.playTokenString设备播放码,供 OpenSDK 使用
deviceList.channels.channelIdString通道号
deviceList.channels.deviceIdString设备序列号
deviceList.channels.channelNameString通道名称
deviceList.channels.abilityString通道能力集,如 AlarmMD、AudioTalk,逗号分隔
deviceList.channels.statusString远程通道状态:online 在线,offline 离线,close 未配置,sleep 休眠,upgrading 升级中
deviceList.channels.picUrlString缩略图 URL
deviceList.channels.remindStatusString提醒状态:off 不提醒,on 提醒
deviceList.channels.cameraStatusString镜头遮蔽:on 开启,off 关闭
deviceList.channels.storageStrategyStatusString云存储状态:notExist 未开通套餐,using 已开通且未过期,expired 套餐已过期
deviceList.channels.shareStatusString"" 设备属于本人;share 经 easy4ip 应用分享给当前用户
deviceList.channels.shareFunctionsString分享/授权的功能权限列表(逗号分隔)
deviceList.channels.resolutions.nameString客户端展示的分辨率名称
deviceList.channels.resolutions.imageSizeInteger分辨率枚举值
deviceList.channels.resolutions.streamTypeInteger码流类型:0 高清主码流,1 标清辅码流
deviceList.aplist.apIdString配件 ID
deviceList.aplist.apNameString配件名称
deviceList.aplist.apTypeString配件类型
deviceList.aplist.apModelString配件型号
deviceList.aplist.ioTypeString配件 IO 类型:in 输入,out 输出
deviceList.aplist.apVersionString配件版本号
deviceList.aplist.apStatusString配件在线状态:online 在线,offline 离线
deviceList.aplist.apEnableString配件启用:on 启用,off 关闭
deviceList.aplist.apCapacityString配件能力项,逗号分隔,如 AudioTalk、PT

响应示例

{
 "result":{
 "msg":"操作成功.",
 "code":"0",
 "data":{
 "count":1,
 "deviceList":[{
 "deviceId":"TESTQWERXXXX",
 "status":"online",
 "deviceModel":"CE-A-TP1",
 "catalog":"SD",
 "brand":"lechange",
 "version":"Chn_A_V1.1",
 "name":"deviceName",
 "ability":"AlarmMD,AudioTalk,AlarmPIR,WLAN,VVP2P",
 "accessType":"",
 "encryptMode":"0",
 "playToken":"qwejhfdhrubfsdbisjfasnd",
 "channels":[{
 "channelId":"0",
 "deviceId":"TESTQWERXXXX",
 "channelName":"channelName",
 "ability":"ability",
 "status":"online",
 "picUrl":"http://xxx.xx.com/xxx/3.jpg",
 "remindStatus":"on",
 "cameraStatus":"on",
 "storageStrategyStatus":"using",
 "shareStatus":"share",
 "shareFunctions":"videoMonitor",
 "resolutions":[{
 "name":"1080P",
 "imageSize":18,
 "streamType":0
 }]
 }],
 "aplist":[{
 "apId":"APXXXXXXXXXXXX",
 "apName":"cname",
 "apType":"ability",
 "apModel":"wbs",
 "ioType":"auto",
 "apVersion":"V1.2.3",
 "apStatus":"online",
 "apEnable":"on",
 "apCapacity":"AudioTalk,PT"
 }]
 }]
 }
 },
 "id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af"
}

错误码

本接口可能返回下列码;完整分组见 错误码 与 能力错误码。

网关与鉴权(SN / TK / OP)

错误码错误码说明下一步
SN1001签名校验异常按 HTTP 开发规范 核对 sign
TK1002token 无效或过期重新获取 accessToken
OP1002缺少必填参数补必填字段
OP1003参数不合法按本页参数表核对
OP1009权限不足核对 token 与设备绑定/分享权限
OP1013接口总次数超限降低调用频率
OP1014接口日限额超限见 接口调用限额
DV1007设备离线等设备上线

更多见 错误码 · OP/SN/TK。

子账号(SUB)

错误码错误码说明下一步
SUB1001–SUB1002子账号无接口权限在 addPolicy 中补策略
SUB1005子账号 token 过期重新 subAccountToken
SUB1006子账号与设备无授权核对 Resource 与设备序列号
SUB1008子账号未绑定应用先创建并绑定子账号

更多见 错误码 · SUB。

设备访问与通道(DV10xx)

错误码错误码说明下一步
DV1007设备离线或超时等设备上线
DV1009设备正忙稍后重试
DV1012分享/授权设备权限不足核对子账号 Permission / Resource
DV1019能力集不支持确认型号与能力列表
DV1020通道离线检查通道状态
DV1026不支持此功能换接口或升级固件
DV1028未绑定或通道不存在核对 deviceId / channelId

更多见 错误码 · DV。

相关参考

  • 开发规范
  • 公共约定
  • 本模块索引
bindDeviceList(批量设备信息获取)
deviceBaseList(分页获取 easy4ip 应用设备通道基础信息)