alibaba.idle.interact.loan.push (闲鱼借贷push)

闲鱼借贷回调

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
user String 必须 3 用户标识
info IdleLoanPushInfo 必须 用户push信息
  • └ user_id
  • Number
  • 必须
  • 0
  • 用户id
  • └ type
  • String
  • 必须
  • CREDIT_SUCCESS
  • 事件类型
  • └ push_task_id
  • String
  • 必须
  • 0
  • push任务id
  • └ push_material_id
  • String
  • 必须
  • 0
  • push素材id
  • └ push_attributes
  • String
  • 可选
  • push扩展信息

响应参数

名称 类型 示例值 描述
idle_point_result IdlePointResult idlePointResult
  • └ success
  • Boolean
  • false
  • success
  • └ data
  • String
  • false
  • 是否推送成功
  • biz_error
  • BizError
  • xx
  • err
  • └ err_code
  • String
  • xx
  • 错误码
  • └ err_msg
  • String
  • xx
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleInteractLoanPushRequest req = new AlibabaIdleInteractLoanPushRequest();
req.setUser("3");
AlibabaIdleInteractLoanPushRequest.IdleLoanPushInfo obj1 = new AlibabaIdleInteractLoanPushRequest.IdleLoanPushInfo();
obj1.setUserId(0L);
obj1.setType("CREDIT_SUCCESS");
obj1.setPushTaskId("0");
obj1.setPushMaterialId("0");
obj1.setPushAttributes("");
req.setInfo(obj1);
AlibabaIdleInteractLoanPushResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_interact_loan_push_response>
    <idle_point_result>
        <success>false</success>
        <data>false</data>
        <biz_error>
            <err_code>xx</err_code>
            <err_msg>xx</err_msg>
        </biz_error>
    </idle_point_result>
</alibaba_idle_interact_loan_push_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

返回
顶部