TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFinTaoInsuranceClaimApplyRequest req = new AlibabaFinTaoInsuranceClaimApplyRequest();
AlibabaFinTaoInsuranceClaimApplyRequest.ClaimApply4TopRequest obj1 = new AlibabaFinTaoInsuranceClaimApplyRequest.ClaimApply4TopRequest();
obj1.setIdentifier("1234");
obj1.setClaimOutBizNo("1234");
List<AlibabaFinTaoInsuranceClaimApplyRequest.AttachmentDTO> list3 = new ArrayList<AlibabaFinTaoInsuranceClaimApplyRequest.AttachmentDTO>();
AlibabaFinTaoInsuranceClaimApplyRequest.AttachmentDTO obj4 = new AlibabaFinTaoInsuranceClaimApplyRequest.AttachmentDTO();
list3.add(obj4);
obj4.setPath("https://aa.jpg");
obj4.setName("after_repair4");
obj4.setDescription("after_repair");
obj1.setAttachments(list3);
obj1.setReportApplicationNo("1234");
obj1.setPolicyBizNo("1234");
obj1.setBizData("{}");
obj1.setApplyTime(1680748480000L);
obj1.setClaimFee(100L);
req.setClaimApply4TopRequest(obj1);
AlibabaFinTaoInsuranceClaimApplyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaFinTaoInsuranceClaimApplyRequest req = new AlibabaFinTaoInsuranceClaimApplyRequest();
AlibabaFinTaoInsuranceClaimApplyRequest.ClaimApply4TopRequestDomain obj1 = new AlibabaFinTaoInsuranceClaimApplyRequest.ClaimApply4TopRequestDomain();
obj1.Identifier = "1234";
obj1.ClaimOutBizNo = "1234";
List<AlibabaFinTaoInsuranceClaimApplyRequest.AttachmentDTODomain> list3 = new List<AlibabaFinTaoInsuranceClaimApplyRequest.AttachmentDTODomain>();
AlibabaFinTaoInsuranceClaimApplyRequest.AttachmentDTODomain obj4 = new AlibabaFinTaoInsuranceClaimApplyRequest.AttachmentDTODomain();
list3.Add(obj4);
obj4.Path = "https://aa.jpg";
obj4.Name = "after_repair4";
obj4.Description = "after_repair";
obj1.Attachments= list3;
obj1.ReportApplicationNo = "1234";
obj1.PolicyBizNo = "1234";
obj1.BizData = "{}";
obj1.ApplyTime = 1680748480000L;
obj1.ClaimFee = 100L;
req.ClaimApply4TopRequest_ = obj1;
AlibabaFinTaoInsuranceClaimApplyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaFinTaoInsuranceClaimApplyRequest;
$claim_apply4_top_request = new ClaimApply4TopRequest;
$claim_apply4_top_request->identifier="1234";
$claim_apply4_top_request->claim_out_biz_no="1234";
$attachments = new AttachmentDTO;
$attachments->path="https://aa.jpg";
$attachments->name="after_repair4";
$attachments->description="after_repair";
$claim_apply4_top_request->attachments = $attachments;
$claim_apply4_top_request->report_application_no="1234";
$claim_apply4_top_request->policy_biz_no="1234";
$claim_apply4_top_request->biz_data="{}";
$claim_apply4_top_request->apply_time="1680748480000";
$claim_apply4_top_request->claim_fee="100";
$req->setClaimApply4TopRequest(json_encode($claim_apply4_top_request));
$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.fin.tao.insurance.claim.apply' \
-d 'partner_id=apidoc' \
-d 'sign=680D4A6E89B07178573E278C561151ED' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-22+16%3A42%3A13' \
-d 'v=2.0' \
-d 'claim_apply4_top_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaFinTaoInsuranceClaimApplyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.claim_apply4_top_request="数据结构示例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.fin.tao.insurance.claim.apply");
add_param(pRequest,"claim_apply4_top_request","数据结构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.fin.tao.insurance.claim.apply', {
'claim_apply4_top_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})