文档中心 > API类目 > 阿里通信API

taobao.alicom.ttz.task.result.notice (充值中心天天赚任务结果通知)

阿里通信充值中心天天赚任务结果通知

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param TaskNoticeDto 必须 入参对下
  • └ sign_info
  • String
  • 必须
  • ewrwer
  • 签名
  • └ award
  • Number
  • 可选
  • 100
  • 奖励面额
  • └ task_step_no
  • String
  • 必须
  • 1
  • 任务阶段
  • └ buyer_id
  • Number
  • 必须
  • 123
  • 用户ID
  • └ task_id
  • Number
  • 必须
  • 1
  • 任务ID

响应参数

名称 类型 示例值 描述
result ResultDto 异步获取历史数据接口返回结果
  • └ code
  • String
  • 系统自动生成
  • └ data
  • Boolean
  • true
  • 通知成功返回true
  • └ success
  • Boolean
  • true
  • 执行结果
  • └ message
  • String
  • 系统自动生成

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlicomTtzTaskResultNoticeRequest req = new AlicomTtzTaskResultNoticeRequest();
AlicomTtzTaskResultNoticeRequest.TaskNoticeDto obj1 = new AlicomTtzTaskResultNoticeRequest.TaskNoticeDto();
obj1.setSignInfo("ewrwer");
obj1.setAward(100L);
obj1.setTaskStepNo("1");
obj1.setBuyerId(123L);
obj1.setTaskId(1L);
req.setParam(obj1);
AlicomTtzTaskResultNoticeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alicom_ttz_task_result_notice_response>
    <result>
        <code></code>
        <data>true</data>
        <success>true</success>
        <message></message>
    </result>
</alicom_ttz_task_result_notice_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

返回
顶部