文档中心 > API类目 > 新制造API

taobao.rhino.device.baseinfo.devicemodel.search (行业设备型号查询)

模糊查询行业设备型号

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
search String 可选 模糊搜索支持名称/型号
tenant_id String 必须 3841560883 租户ID

响应参数

名称 类型 示例值 描述
is_success Boolean true 是否调用成功
errcode Number 200 错误码
models GlobalDeviceModelDto [] 返回值 返回值
  • └ global_model_id
  • String
  • SEW00001
  • 行业设备型号
  • └ name
  • String
  • 测试
  • 行业设备型号版本
errmsg String 成功 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
RhinoDeviceBaseinfoDevicemodelSearchRequest req = new RhinoDeviceBaseinfoDevicemodelSearchRequest();
req.setSearch("单");
req.setTenantId("3841560883");
RhinoDeviceBaseinfoDevicemodelSearchResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<rhino_device_baseinfo_devicemodel_search_response>
    <is_success>true</is_success>
    <errcode>200</errcode>
    <models>
        <global_device_model_dto>
            <global_model_id>SEW00001</global_model_id>
            <name>测试</name>
        </global_device_model_dto>
    </models>
    <errmsg>成功</errmsg>
</rhino_device_baseinfo_devicemodel_search_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

返回
顶部