TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest req = new AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest();
AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest.InstSyncPolicyAttachmentRequest obj1 = new AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest.InstSyncPolicyAttachmentRequest();
obj1.setAlipayUserOpenId("20885243520156");
List<AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest.Attachment> list3 = new ArrayList<AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest.Attachment>();
AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest.Attachment obj4 = new AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest.Attachment();
list3.add(obj4);
obj4.setAuditTime("20210512140008");
obj4.setAuditFailReason("非法文件类型");
obj4.setAttachmentId("412345234");
obj4.setAuditStatus("SUCCESS");
List<AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest.AttachmentContent> list7 = new ArrayList<AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest.AttachmentContent>();
AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest.AttachmentContent obj8 = new AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest.AttachmentContent();
list7.add(obj8);
obj8.setType("image");
obj8.setExaminationTime("20210512140008");
obj8.setSortOrder(1L);
obj8.setAttachmentUrl("https://zhongan.com/1.png");
list5.setContent(list7);
obj1.setAttachment(list3);
obj1.setInstPolicyId("ZA523452435");
obj1.setUploadStatus("SUCCESS");
obj1.setUadType("1");
obj1.setUploadTime("20210512140008");
obj1.setFlowId("1852345435243");
req.setBizData(obj1);
AlibabaAlihealthInsuranceInstPolicyAttachmentSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest req = new AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest();
AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest.InstSyncPolicyAttachmentRequestDomain obj1 = new AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest.InstSyncPolicyAttachmentRequestDomain();
obj1.AlipayUserOpenId = "20885243520156";
List<AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest.AttachmentDomain> list3 = new List<AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest.AttachmentDomain>();
AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest.AttachmentDomain obj4 = new AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest.AttachmentDomain();
list3.Add(obj4);
obj4.AuditTime = "20210512140008";
obj4.AuditFailReason = "非法文件类型";
obj4.AttachmentId = "412345234";
obj4.AuditStatus = "SUCCESS";
List<AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest.AttachmentContentDomain> list6 = new List<AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest.AttachmentContentDomain>();
AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest.AttachmentContentDomain obj7 = new AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest.AttachmentContentDomain();
list6.Add(obj7);
obj7.Type = "image";
obj7.ExaminationTime = "20210512140008";
obj7.SortOrder = 1L;
obj7.AttachmentUrl = "https://zhongan.com/1.png";
obj4.Content= list6;
obj1.Attachment= list3;
obj1.InstPolicyId = "ZA523452435";
obj1.UploadStatus = "SUCCESS";
obj1.UadType = "1";
obj1.UploadTime = "20210512140008";
obj1.FlowId = "1852345435243";
req.BizData_ = obj1;
AlibabaAlihealthInsuranceInstPolicyAttachmentSyncResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest;
$biz_data = new InstSyncPolicyAttachmentRequest;
$biz_data->alipay_user_open_id="20885243520156";
$attachment = new Attachment;
$attachment->audit_time="20210512140008";
$attachment->audit_fail_reason="非法文件类型";
$attachment->attachment_id="412345234";
$attachment->audit_status="SUCCESS";
$content = new AttachmentContent;
$content->type="image";
$content->examination_time="20210512140008";
$content->sort_order="1";
$content->attachment_url="https://zhongan.com/1.png";
$attachment->content = $content;
$biz_data->attachment = $attachment;
$biz_data->inst_policy_id="ZA523452435";
$biz_data->upload_status="SUCCESS";
$biz_data->uad_type="1";
$biz_data->upload_time="20210512140008";
$biz_data->flow_id="1852345435243";
$req->setBizData(json_encode($biz_data));
$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.alihealth.insurance.inst.policy.attachment.sync' \
-d 'partner_id=apidoc' \
-d 'sign=F72A9EDE63CB91B9F4E5DE844BFBF1BC' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-17+00%3A08%3A21' \
-d 'v=2.0' \
-d 'biz_data=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthInsuranceInstPolicyAttachmentSyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.biz_data=""
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.alihealth.insurance.inst.policy.attachment.sync");
add_param(pRequest,"biz_data","数据结构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.alihealth.insurance.inst.policy.attachment.sync', {
'biz_data':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})