TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallFinCarOpenLoanNotifyRequest req = new TmallFinCarOpenLoanNotifyRequest();
TmallFinCarOpenLoanNotifyRequest.LoanStatusRequestTop obj1 = new TmallFinCarOpenLoanNotifyRequest.LoanStatusRequestTop();
obj1.setCustomerType("ALI");
obj1.setCustomerId("123");
obj1.setStatus("LOANED");
obj1.setBizType("TMALL_CAR");
obj1.setInstitutionLoanNo("1232");
obj1.setBizNo("3232");
obj1.setEventTime(StringUtils.parseDateTime("2019-08-09 12:34:32"));
obj1.setChannel("GH_APP");
obj1.setRequestNo("32323");
obj1.setExtendInfo("{}");
req.setLoanStatusRequestTop(obj1);
TmallFinCarOpenLoanNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallFinCarOpenLoanNotifyRequest req = new TmallFinCarOpenLoanNotifyRequest();
TmallFinCarOpenLoanNotifyRequest.LoanStatusRequestTopDomain obj1 = new TmallFinCarOpenLoanNotifyRequest.LoanStatusRequestTopDomain();
obj1.CustomerType = "ALI";
obj1.CustomerId = "123";
obj1.Status = "LOANED";
obj1.BizType = "TMALL_CAR";
obj1.InstitutionLoanNo = "1232";
obj1.BizNo = "3232";
obj1.EventTime = DateTime.Parse(2019-08-09 12:34:32");
obj1.Channel = "GH_APP";
obj1.RequestNo = "32323";
obj1.ExtendInfo = "{}";
req.LoanStatusRequestTop_ = obj1;
TmallFinCarOpenLoanNotifyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallFinCarOpenLoanNotifyRequest;
$loan_status_request_top = new LoanStatusRequestTop;
$loan_status_request_top->customer_type="ALI";
$loan_status_request_top->customer_id="123";
$loan_status_request_top->status="LOANED";
$loan_status_request_top->biz_type="TMALL_CAR";
$loan_status_request_top->institution_loan_no="1232";
$loan_status_request_top->biz_no="3232";
$loan_status_request_top->event_time="2019-08-09 12:34:32";
$loan_status_request_top->channel="GH_APP";
$loan_status_request_top->request_no="32323";
$loan_status_request_top->extend_info="{}";
$req->setLoanStatusRequestTop(json_encode($loan_status_request_top));
$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=tmall.fin.car.open.loan.notify' \
-d 'partner_id=apidoc' \
-d 'sign=02EE5CDCC1ACE7B5F51E7ABA4353C06D' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-07-12+07%3A44%3A10' \
-d 'v=2.0' \
-d 'loan_status_request_top=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallFinCarOpenLoanNotifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.loan_status_request_top=""
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,"tmall.fin.car.open.loan.notify");
add_param(pRequest,"loan_status_request_top","数据结构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('tmall.fin.car.open.loan.notify', {
'loan_status_request_top':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})