注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 千牛接口

taobao.qianniu.auto.task.enable (自动化任务启用停用)

自动化任务启用停用接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
bot_nick String 必须 CheckOrderBot 自动化任务昵称
status Boolean 必须 true 停用或启用状态

响应参数

名称 类型 示例值 描述
result ApiResult {} 返回结果
  • └ error_code
  • String
  • 123
  • 错误码
  • └ error_msg
  • String
  • hello world
  • 错误信息
  • └ result
  • Boolean
  • true
  • 操作结果是否成功
  • └ sub_code
  • String
  • hello world
  • 子错误码
  • └ success
  • Boolean
  • true
  • 接口调用成功失败标志

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
QianniuAutoTaskEnableRequest req = new QianniuAutoTaskEnableRequest();
req.setBotNick("CheckOrderBot");
req.setStatus(true);
QianniuAutoTaskEnableResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<qianniu_auto_task_enable_response>
    <result>
        <error_code>123</error_code>
        <error_msg>hello world</error_msg>
        <result>true</result>
        <sub_code>hello world</sub_code>
        <success>true</success>
    </result>
</qianniu_auto_task_enable_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

返回
顶部