文档中心 > API类目 > 五道口API

taobao.rex.iot.skyeye.camera.get.bytargets (根据目标对象类型及其id查询指定摄像头)

根据目标对象类型及其id查询指定摄像头

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
shop_target_list_request ShopTargetListRequest 可选 请求详情
  • └ shop_code
  • String
  • 必须
  • 8028
  • 门店Code
  • └ merchant_code
  • String
  • 必须
  • HM
  • 商家Code
  • └ target_type
  • String
  • 必须
  • rack
  • 目标类型,pos→pos设备 rack→货架
  • └ target_id_list
  • String []
  • 必须
  • AP2051
  • 目标id列表
  • └ target_b_box_scope
  • String
  • 可选
  • {}
  • 具体范围

响应参数

名称 类型 示例值 描述
data ShopTargetRelateCameraDTO [] 返回详情
  • └ target_id
  • String
  • AP2051
  • 目标id
  • shop_camera_list
  • ShopCameraDTO []
  • 摄像头详情
  • └ camera_id
  • String
  • 123
  • 摄像头ID
  • └ camera_name
  • String
  • camera111
  • 摄像头名称
  • └ bbox
  • String
  • [{"x":448,"y":258},{"x":524,"y":461},{"x":494,"y":112},{"x":434,"y":42}]
  • 范围
  • └ visible_area_names
  • String []
  • 可见的区域名称
  • └ snapshot_url
  • String
  • https://xxx
  • 摄像头快照
ret_success Boolean true 是否成功
msg_info String 服务器错误 返回msg
msg_code String FAIL_BIZ_XX 返回code

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
RexIotSkyeyeCameraGetBytargetsRequest req = new RexIotSkyeyeCameraGetBytargetsRequest();
RexIotSkyeyeCameraGetBytargetsRequest.ShopTargetListRequest obj1 = new RexIotSkyeyeCameraGetBytargetsRequest.ShopTargetListRequest();
obj1.setShopCode("8028");
obj1.setMerchantCode("HM");
obj1.setTargetType("rack");
obj1.setTargetIdList("AP2051");
obj1.setTargetBBoxScope("{}");
req.setShopTargetListRequest(obj1);
RexIotSkyeyeCameraGetBytargetsResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<rex_iot_skyeye_camera_get_bytargets_response>
    <data>
        <shop_target_relate_camera_d_t_o>
            <target_id>AP2051</target_id>
            <shop_camera_list>
                <shop_camera_d_t_o>
                    <camera_id>123</camera_id>
                    <camera_name>camera111</camera_name>
                    <bbox>[{&quot;x&quot;:448,&quot;y&quot;:258},{&quot;x&quot;:524,&quot;y&quot;:461},{&quot;x&quot;:494,&quot;y&quot;:112},{&quot;x&quot;:434,&quot;y&quot;:42}]</bbox>
                    <snapshot_url>https://xxx</snapshot_url>
                </shop_camera_d_t_o>
            </shop_camera_list>
        </shop_target_relate_camera_d_t_o>
    </data>
    <ret_success>true</ret_success>
    <msg_info>服务器错误</msg_info>
    <msg_code>FAIL_BIZ_XX</msg_code>
</rex_iot_skyeye_camera_get_bytargets_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

返回
顶部