taobao.paimai.auctionruby.task.promotion (淘金任务推广接口)

淘金任务推广接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
open_api_promotion_task_req OpenApiPromotionTaskReq 必须 推广参数
  • └ app_key
  • String
  • 必须
  • 34309206
  • appkey
  • └ pid
  • String
  • 必须
  • 123.333.123
  • 推广pid
  • └ id
  • Number
  • 必须
  • 1234455
  • 推广任务id

响应参数

名称 类型 示例值 描述
data OpenApiPromotionTaskResp 推广结果对象
  • └ id
  • Number
  • 1234455
  • 推广任务id
  • └ detail_url
  • String
  • http://xxxxxx
  • 任务详情url
  • └ promotion_url
  • String
  • http://xxxxxx.wwww
  • 任务推广url
result_code ResultCode 返回结果
  • └ code
  • String
  • 200
  • 结果code
  • └ message
  • String
  • 成功
  • 结果信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
PaimaiAuctionrubyTaskPromotionRequest req = new PaimaiAuctionrubyTaskPromotionRequest();
PaimaiAuctionrubyTaskPromotionRequest.OpenApiPromotionTaskReq obj1 = new PaimaiAuctionrubyTaskPromotionRequest.OpenApiPromotionTaskReq();
obj1.setAppKey("34309206");
obj1.setPid("123.333.123");
obj1.setId(1234455L);
req.setOpenApiPromotionTaskReq(obj1);
PaimaiAuctionrubyTaskPromotionResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<paimai_auctionruby_task_promotion_response>
    <data>
        <id>1234455</id>
        <detail_url>http://xxxxxx</detail_url>
        <promotion_url>http://xxxxxx.wwww</promotion_url>
    </data>
    <result_code>
        <code>200</code>
        <message>成功</message>
    </result_code>
</paimai_auctionruby_task_promotion_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

返回
顶部