taobao.top.kitcode.history.create (套件历史扫描任务创建)

套件历史扫描任务创建,任务创建后将异步执行;注意仅支持2021-07-21后以后的数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
end Date 必须 2021-07-15 16:25:19 任务截止时间
kit_code String 必须 topxp 套件名称
start Date 必须 2021-07-15 16:25:19 任务开始时间

响应参数

名称 类型 示例值 描述
result Number 1 任务编码,后续用此查询进度

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TopKitcodeHistoryCreateRequest req = new TopKitcodeHistoryCreateRequest();
req.setEnd(StringUtils.parseDateTime("2021-07-15 16:25:19"));
req.setKitCode("topxp");
req.setStart(StringUtils.parseDateTime("2021-07-15 16:25:19"));
TopKitcodeHistoryCreateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<top_kitcode_history_create_response>
    <result>1</result>
</top_kitcode_history_create_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

返回
顶部