TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFinanceCreditResultNotifyRequest req = new AlibabaFinanceCreditResultNotifyRequest();
AlibabaFinanceCreditResultNotifyRequest.ExternalCreditNotifyRequest obj1 = new AlibabaFinanceCreditResultNotifyRequest.ExternalCreditNotifyRequest();
obj1.setRequestId("123123123213213123123");
obj1.setCustomerId("232131323");
obj1.setCreditApplyNo("FI231313131312313123");
obj1.setInstitutionCreditApplyNo("11313123123123213");
obj1.setInstitutionCreditNo("31313123213");
obj1.setInstitutionCustomerId("231313123");
obj1.setCreditStatus("QUALIFIED");
obj1.setCreditTime(StringUtils.parseDateTime("2019-11-22 00:00:00"));
obj1.setCreditQuota("1213213.21");
obj1.setInterestRate("0.18");
obj1.setStartTime(StringUtils.parseDateTime("2019-11-22 00:00:00"));
obj1.setEndTime(StringUtils.parseDateTime("2019-11-22 00:00:00"));
obj1.setExtendInfo("{\"key\":value}");
obj1.setFailReasonCode("RETRY_MAX_LIMITS");
obj1.setFailReasonMessage("\"超过最大次数\"");
obj1.setNextAvailableApplyTime(StringUtils.parseDateTime("2050-11-22 00:00:00"));
obj1.setCreditTerm("1");
obj1.setCreditTermUnit("\"M\"");
req.setParam(obj1);
AlibabaFinanceCreditResultNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaFinanceCreditResultNotifyRequest req = new AlibabaFinanceCreditResultNotifyRequest();
AlibabaFinanceCreditResultNotifyRequest.ExternalCreditNotifyRequestDomain obj1 = new AlibabaFinanceCreditResultNotifyRequest.ExternalCreditNotifyRequestDomain();
obj1.RequestId = "123123123213213123123";
obj1.CustomerId = "232131323";
obj1.CreditApplyNo = "FI231313131312313123";
obj1.InstitutionCreditApplyNo = "11313123123123213";
obj1.InstitutionCreditNo = "31313123213";
obj1.InstitutionCustomerId = "231313123";
obj1.CreditStatus = "QUALIFIED";
obj1.CreditTime = DateTime.Parse(2019-11-22 00:00:00");
obj1.CreditQuota = "1213213.21";
obj1.InterestRate = "0.18";
obj1.StartTime = DateTime.Parse(2019-11-22 00:00:00");
obj1.EndTime = DateTime.Parse(2019-11-22 00:00:00");
obj1.ExtendInfo = "{\"key\":value}";
obj1.FailReasonCode = "RETRY_MAX_LIMITS";
obj1.FailReasonMessage = "\"超过最大次数\"";
obj1.NextAvailableApplyTime = DateTime.Parse(2050-11-22 00:00:00");
obj1.CreditTerm = "1";
obj1.CreditTermUnit = "\"M\"";
req.Param_ = obj1;
AlibabaFinanceCreditResultNotifyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaFinanceCreditResultNotifyRequest;
$param = new ExternalCreditNotifyRequest;
$param->request_id="123123123213213123123";
$param->customer_id="232131323";
$param->credit_apply_no="FI231313131312313123";
$param->institution_credit_apply_no="11313123123123213";
$param->institution_credit_no="31313123213";
$param->institution_customer_id="231313123";
$param->credit_status="QUALIFIED";
$param->credit_time="2019-11-22 00:00:00";
$param->credit_quota="1213213.21";
$param->interest_rate="0.18";
$param->start_time="2019-11-22 00:00:00";
$param->end_time="2019-11-22 00:00:00";
$param->extend_info="{\"key\":value}";
$param->fail_reason_code="RETRY_MAX_LIMITS";
$param->fail_reason_message="\"超过最大次数\"";
$param->next_available_apply_time="2050-11-22 00:00:00";
$param->credit_term="1";
$param->credit_term_unit="\"M\"";
$req->setParam(json_encode($param));
$resp = $c->execute($req);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=alibaba.finance.credit.result.notify' \
-d 'partner_id=apidoc' \
-d 'sign=0B40E8D3EEAC06A18D799D9D84C3F2F9' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-01+13%3A01%3A27' \
-d 'v=2.0' \
-d 'param=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaFinanceCreditResultNotifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param="数据结构示例JSON格式"
try:
resp= req.getResponse()
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"alibaba.finance.credit.result.notify");
add_param(pRequest,"param","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,NULL);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.finance.credit.result.notify', {
'param':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})