TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlipayBaoxianClaimUpdateRequest req = new AlipayBaoxianClaimUpdateRequest();
req.setBizDataString("{}");
req.setProgressList("{}");
List<AlipayBaoxianClaimUpdateRequest.ClaimAttachment> list2 = new ArrayList<AlipayBaoxianClaimUpdateRequest.ClaimAttachment>();
AlipayBaoxianClaimUpdateRequest.ClaimAttachment obj3 = new AlipayBaoxianClaimUpdateRequest.ClaimAttachment();
list2.add(obj3);
obj3.setType(3L);
obj3.setName("\"name\"");
obj3.setSize(4L);
obj3.setPath("\"name/ddd.png\"");
obj3.setDescription("\"\"");
obj3.setFileType("\"\"");
req.setClaimAttachments(list2);
req.setPolicyBizNo("{}");
req.setOutBizNo("\"\"");
req.setBizSource("\"\"");
req.setClaimFee(100L);
req.setClaimNo("\"\"");
req.setClaimOutBizNo("\"\"");
req.setSpNo("\"\"");
AlipayBaoxianClaimUpdateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlipayBaoxianClaimUpdateRequest req = new AlipayBaoxianClaimUpdateRequest();
req.BizData = "{}";
req.ProgressList = "{}";
List<AlipayBaoxianClaimUpdateRequest.ClaimAttachmentDomain> list2 = new List<AlipayBaoxianClaimUpdateRequest.ClaimAttachmentDomain>();
AlipayBaoxianClaimUpdateRequest.ClaimAttachmentDomain obj3 = new AlipayBaoxianClaimUpdateRequest.ClaimAttachmentDomain();
list2.Add(obj3);
obj3.Type = 3L;
obj3.Name = "\"name\"";
obj3.Size = 4L;
obj3.Path = "\"name/ddd.png\"";
obj3.Description = "\"\"";
obj3.FileType = "\"\"";
req.ClaimAttachments_ = list2;
req.PolicyBizNo = "{}";
req.OutBizNo = "\"\"";
req.BizSource = "\"\"";
req.ClaimFee = 100L;
req.ClaimNo = "\"\"";
req.ClaimOutBizNo = "\"\"";
req.SpNo = "\"\"";
AlipayBaoxianClaimUpdateResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlipayBaoxianClaimUpdateRequest;
$req->setBizData("{}");
$req->setProgressList("{}");
$claim_attachments = new ClaimAttachment;
$claim_attachments->type="3";
$claim_attachments->name="\"name\"";
$claim_attachments->size="4";
$claim_attachments->path="\"name/ddd.png\"";
$claim_attachments->description="\"\"";
$claim_attachments->file_type="\"\"";
$req->setClaimAttachments(json_encode($claim_attachments));
$req->setPolicyBizNo("{}");
$req->setOutBizNo("\"\"");
$req->setBizSource("\"\"");
$req->setClaimFee("100");
$req->setClaimNo("\"\"");
$req->setClaimOutBizNo("\"\"");
$req->setSpNo("\"\"");
$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=alipay.baoxian.claim.update' \
-d 'partner_id=apidoc' \
-d 'sign=4DBFDB85C6E54551EF1D57C7C344A368' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-25+16%3A02%3A03' \
-d 'v=2.0' \
-d 'biz_data=%7B%7D' \
-d 'biz_source=%5C%22%5C%22' \
-d 'claim_attachments=null' \
-d 'claim_fee=100' \
-d 'claim_no=%5C%22%5C%22' \
-d 'claim_out_biz_no=%5C%22%5C%22' \
-d 'out_biz_no=%5C%22%5C%22' \
-d 'policy_biz_no=%7B%7D' \
-d 'progress_list=%7B%7D' \
-d 'sp_no=%5C%22%5C%22'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlipayBaoxianClaimUpdateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.biz_data="{}"
req.progress_list="{}"
req.claim_attachments=""
req.policy_biz_no="{}"
req.out_biz_no="\"\""
req.biz_source="\"\""
req.claim_fee=100
req.claim_no="\"\""
req.claim_out_biz_no="\"\""
req.sp_no="\"\""
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,"alipay.baoxian.claim.update");
add_param(pRequest,"biz_data","{}");
add_param(pRequest,"progress_list","{}");
add_param(pRequest,"claim_attachments","数据结构JSON示例");
add_param(pRequest,"policy_biz_no","{}");
add_param(pRequest,"out_biz_no","\"\"");
add_param(pRequest,"biz_source","\"\"");
add_param(pRequest,"claim_fee","100");
add_param(pRequest,"claim_no","\"\"");
add_param(pRequest,"claim_out_biz_no","\"\"");
add_param(pRequest,"sp_no","\"\"");
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('alipay.baoxian.claim.update', {
'biz_data':'{}',
'progress_list':'{}',
'claim_attachments':'数据结构JSON示例',
'policy_biz_no':'{}',
'out_biz_no':'\"\"',
'biz_source':'\"\"',
'claim_fee':'100',
'claim_no':'\"\"',
'claim_out_biz_no':'\"\"',
'sp_no':'\"\"'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})