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

taobao.wdk.equipment.esl.info.upload (上传价签信息)

上传门店的价签的信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
sid String 必须 GUID 门店id
esl_id String 必须 E9-1W-P0-EE 签id
esl_info EslInfoDo 必须 价签信息
  • └ screen_height
  • Number
  • 必须
  • 120
  • 屏幕高度
  • └ esl_type
  • String
  • 可选
  • DOT2
  • 价签硬件类型
  • └ sid
  • String
  • 必须
  • GUIID
  • 门店id
  • └ status
  • Number
  • 必须
  • 0
  • 价签状态,0:online,1:offline
  • └ screen_width
  • Number
  • 必须
  • 220
  • 屏幕宽度
  • └ battery_level
  • BigDecimal
  • 可选
  • 31.1
  • 价签电量
  • └ vender_id
  • String
  • 必须
  • hanshow
  • 厂商id
  • └ color_type
  • String
  • 可选
  • black_white
  • 屏幕颜色类型
  • └ esl_id
  • String
  • 必须
  • E9-1W-P0-EE
  • 价签id
  • └ screen_direction
  • Number
  • 可选
  • 0
  • 屏幕方向
  • └ screen_type
  • String
  • 可选
  • ESL_120
  • 屏幕类型
  • └ last_screen
  • String
  • 可选
  • 123124213212
  • 最后屏幕刷新时间

响应参数

名称 类型 示例值 描述
result Result result 返回结果
  • └ message
  • String
  • message
  • 错误描述
  • └ code
  • Number
  • code
  • 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
WdkEquipmentEslInfoUploadRequest req = new WdkEquipmentEslInfoUploadRequest();
req.setSid("GUID");
req.setEslId("E9-1W-P0-EE");
WdkEquipmentEslInfoUploadRequest.EslInfoDo obj1 = new WdkEquipmentEslInfoUploadRequest.EslInfoDo();
obj1.setScreenHeight(120L);
obj1.setEslType("DOT2");
obj1.setSid("GUIID");
obj1.setStatus(0L);
obj1.setScreenWidth(220L);
obj1.setBatteryLevel("31.1");
obj1.setVenderId("hanshow");
obj1.setColorType("black_white");
obj1.setEslId("E9-1W-P0-EE");
obj1.setScreenDirection(0L);
obj1.setScreenType("ESL_120");
obj1.setLastScreen("123124213212");
req.setEslInfo(obj1);
WdkEquipmentEslInfoUploadResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<wdk_equipment_esl_info_upload_response>
    <result>
        <message>message</message>
        <code>code</code>
    </result>
</wdk_equipment_esl_info_upload_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

返回
顶部