文档中心 > API类目 > 天眼工作室API

alibaba.security.deepvision.proxy.retrospec.sensor.getbycabinetid (根据货架号获取摄像头)

根据货架号获取摄像头

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param SensorQueryByCabinetParam 可选 参数
  • └ cabinet_id
  • String
  • 必须
  • 1
  • 货架号
  • └ request_id
  • String
  • 可选
  • 1
  • 请求唯一ID
  • └ poi_id
  • String
  • 必须
  • 1
  • 门店
  • └ tenant_code
  • String
  • 必须
  • 1
  • 租户
  • └ token
  • String
  • 可选
  • 1
  • token

响应参数

名称 类型 示例值 描述
result Datas [] 返回结果
  • └ tenant_code
  • String
  • 1
  • 租户
  • └ sensor_id
  • String
  • 1
  • 摄像头Id
  • └ name
  • String
  • 1
  • 名称
  • └ desc
  • String
  • 1
  • 描述
  • └ user_properties
  • String
  • 1
  • 用户属性
  • └ map_sensor_id
  • String
  • 1
  • 地图摄像头
resp_code Number 1 返回码
resp_success Boolean true 是否成功
resp_request_id String 1 请求唯一ID
message String 成功 返回描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSecurityDeepvisionProxyRetrospecSensorGetbycabinetidRequest req = new AlibabaSecurityDeepvisionProxyRetrospecSensorGetbycabinetidRequest();
AlibabaSecurityDeepvisionProxyRetrospecSensorGetbycabinetidRequest.SensorQueryByCabinetParam obj1 = new AlibabaSecurityDeepvisionProxyRetrospecSensorGetbycabinetidRequest.SensorQueryByCabinetParam();
obj1.setCabinetId("1");
obj1.setRequestId("1");
obj1.setPoiId("1");
obj1.setTenantCode("1");
obj1.setToken("1");
req.setParam(obj1);
AlibabaSecurityDeepvisionProxyRetrospecSensorGetbycabinetidResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_security_deepvision_proxy_retrospec_sensor_getbycabinetid_response>
    <result>
        <datas>
            <tenant_code>1</tenant_code>
            <sensor_id>1</sensor_id>
            <name>1</name>
            <desc>1</desc>
            <user_properties>1</user_properties>
            <map_sensor_id>1</map_sensor_id>
        </datas>
    </result>
    <resp_code>1</resp_code>
    <resp_success>true</resp_success>
    <resp_request_id>1</resp_request_id>
    <message>成功</message>
</alibaba_security_deepvision_proxy_retrospec_sensor_getbycabinetid_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部