文档中心 > API类目 > 天猫服务数据API

alibaba.homedecoration.worker.trajectory.update (拆送装工人轨迹回传)

拆送装工人轨迹回传

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
worker_trajectory_update_request WorkerTrajectoryUpdateRequest 可选 请求体
  • └ worker_id
  • Number
  • 必须
  • 10086
  • 工人id
  • └ gmt_modify
  • Number
  • 必须
  • 1781856000000
  • 更新时间
  • └ latitude
  • String
  • 必须
  • 30.123456
  • 经度
  • └ attributes
  • String
  • 可选
  • {"":""}
  • 扩展字段
  • └ source
  • String
  • 必须
  • SERVICE_PROVIDER_APP/GPS
  • 来源
  • └ longitude
  • String
  • 必须
  • 120.123456
  • 纬度

响应参数

名称 类型 示例值 描述
display_msg String 服务调用失败 展示描述
value WorkerReportResponse 返回值
  • └ accepted
  • Boolean
  • true
  • 本次数据是否被接受并写入
  • └ code
  • String
  • success
  • 业务处理码
error_msg String 参数错误 错误描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaHomedecorationWorkerTrajectoryUpdateRequest req = new AlibabaHomedecorationWorkerTrajectoryUpdateRequest();
AlibabaHomedecorationWorkerTrajectoryUpdateRequest.WorkerTrajectoryUpdateRequest obj1 = new AlibabaHomedecorationWorkerTrajectoryUpdateRequest.WorkerTrajectoryUpdateRequest();
obj1.setWorkerId(10086L);
obj1.setGmtModify(1781856000000L);
obj1.setLatitude("30.123456");
obj1.setAttributes("{\"\":\"\"}");
obj1.setSource("SERVICE_PROVIDER_APP/GPS");
obj1.setLongitude("120.123456");
req.setWorkerTrajectoryUpdateRequest(obj1);
AlibabaHomedecorationWorkerTrajectoryUpdateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_homedecoration_worker_trajectory_update_response>
    <display_msg>服务调用失败</display_msg>
    <value>
        <accepted>true</accepted>
        <code>success</code>
    </value>
    <error_msg>参数错误</error_msg>
</alibaba_homedecoration_worker_trajectory_update_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

返回
顶部