TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthInsuranceInstInsureIntentionOrderInfoSyncRequest req = new AlibabaAlihealthInsuranceInstInsureIntentionOrderInfoSyncRequest();
AlibabaAlihealthInsuranceInstInsureIntentionOrderInfoSyncRequest.InstSyncInsureIntentionOrderInfoRequest obj1 = new AlibabaAlihealthInsuranceInstInsureIntentionOrderInfoSyncRequest.InstSyncInsureIntentionOrderInfoRequest();
obj1.setInstProductId("SU1231");
obj1.setSubmitTime("2023-03-20 12:04:18");
List<AlibabaAlihealthInsuranceInstInsureIntentionOrderInfoSyncRequest.StakeHolder> list3 = new ArrayList<AlibabaAlihealthInsuranceInstInsureIntentionOrderInfoSyncRequest.StakeHolder>();
AlibabaAlihealthInsuranceInstInsureIntentionOrderInfoSyncRequest.StakeHolder obj4 = new AlibabaAlihealthInsuranceInstInsureIntentionOrderInfoSyncRequest.StakeHolder();
list3.add(obj4);
obj4.setBirthday("19991010");
obj4.setCertNo("1100032435234");
obj4.setCertType("ID_CARD");
obj4.setGender("MALE");
obj4.setStakeHolderRole("HOLDER");
obj4.setPhone("1871353498");
obj4.setName("李四");
obj1.setStakeHolders(list3);
obj1.setInstInsureOrderId("202303201234567");
obj1.setExtras("{}");
req.setInstSyncInsureIntentionOrderInfoRequest(obj1);
AlibabaAlihealthInsuranceInstInsureIntentionOrderInfoSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthInsuranceInstInsureIntentionOrderInfoSyncRequest req = new AlibabaAlihealthInsuranceInstInsureIntentionOrderInfoSyncRequest();
AlibabaAlihealthInsuranceInstInsureIntentionOrderInfoSyncRequest.InstSyncInsureIntentionOrderInfoRequestDomain obj1 = new AlibabaAlihealthInsuranceInstInsureIntentionOrderInfoSyncRequest.InstSyncInsureIntentionOrderInfoRequestDomain();
obj1.InstProductId = "SU1231";
obj1.SubmitTime = "2023-03-20 12:04:18";
List<AlibabaAlihealthInsuranceInstInsureIntentionOrderInfoSyncRequest.StakeHolderDomain> list3 = new List<AlibabaAlihealthInsuranceInstInsureIntentionOrderInfoSyncRequest.StakeHolderDomain>();
AlibabaAlihealthInsuranceInstInsureIntentionOrderInfoSyncRequest.StakeHolderDomain obj4 = new AlibabaAlihealthInsuranceInstInsureIntentionOrderInfoSyncRequest.StakeHolderDomain();
list3.Add(obj4);
obj4.Birthday = "19991010";
obj4.CertNo = "1100032435234";
obj4.CertType = "ID_CARD";
obj4.Gender = "MALE";
obj4.StakeHolderRole = "HOLDER";
obj4.Phone = "1871353498";
obj4.Name = "李四";
obj1.StakeHolders= list3;
obj1.InstInsureOrderId = "202303201234567";
obj1.Extras = "{}";
req.InstSyncInsureIntentionOrderInfoRequest_ = obj1;
AlibabaAlihealthInsuranceInstInsureIntentionOrderInfoSyncResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthInsuranceInstInsureIntentionOrderInfoSyncRequest;
$inst_sync_insure_intention_order_info_request = new InstSyncInsureIntentionOrderInfoRequest;
$inst_sync_insure_intention_order_info_request->inst_product_id="SU1231";
$inst_sync_insure_intention_order_info_request->submit_time="2023-03-20 12:04:18";
$stake_holders = new StakeHolder;
$stake_holders->birthday="19991010";
$stake_holders->cert_no="1100032435234";
$stake_holders->cert_type="ID_CARD";
$stake_holders->gender="MALE";
$stake_holders->stake_holder_role="HOLDER";
$stake_holders->phone="1871353498";
$stake_holders->name="李四";
$inst_sync_insure_intention_order_info_request->stake_holders = $stake_holders;
$inst_sync_insure_intention_order_info_request->inst_insure_order_id="202303201234567";
$inst_sync_insure_intention_order_info_request->extras="{}";
$req->setInstSyncInsureIntentionOrderInfoRequest(json_encode($inst_sync_insure_intention_order_info_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.alihealth.insurance.inst.insure.intention.order.info.sync' \
-d 'partner_id=apidoc' \
-d 'sign=9BE7B3C765AAFBB9115ECE1E6136A5C1' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-16+23%3A44%3A27' \
-d 'v=2.0' \
-d 'inst_sync_insure_intention_order_info_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthInsuranceInstInsureIntentionOrderInfoSyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.inst_sync_insure_intention_order_info_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.alihealth.insurance.inst.insure.intention.order.info.sync");
add_param(pRequest,"inst_sync_insure_intention_order_info_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.alihealth.insurance.inst.insure.intention.order.info.sync', {
'inst_sync_insure_intention_order_info_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})