TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthInsuranceInstInsureBillsQueryRequest req = new AlibabaAlihealthInsuranceInstInsureBillsQueryRequest();
req.setPhone("13381789076");
req.setFlowId("1454235435245001");
req.setInsureCounts("5");
req.setInsuredName("张三");
req.setInsuredCertNo("11010109094973");
AlibabaAlihealthInsuranceInstInsureBillsQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthInsuranceInstInsureBillsQueryRequest req = new AlibabaAlihealthInsuranceInstInsureBillsQueryRequest();
req.Phone = "13381789076";
req.FlowId = "1454235435245001";
req.InsureCounts = "5";
req.InsuredName = "张三";
req.InsuredCertNo = "11010109094973";
AlibabaAlihealthInsuranceInstInsureBillsQueryResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthInsuranceInstInsureBillsQueryRequest;
$req->setPhone("13381789076");
$req->setFlowId("1454235435245001");
$req->setInsureCounts("5");
$req->setInsuredName("张三");
$req->setInsuredCertNo("11010109094973");
$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.bills.query' \
-d 'partner_id=apidoc' \
-d 'sign=E61CEDF58A40D1C0215687BB7E8E256E' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-17+01%3A00%3A28' \
-d 'v=2.0' \
-d 'flow_id=1454235435245001' \
-d 'insure_counts=5' \
-d 'insured_cert_no=11010109094973' \
-d 'insured_name=%E5%BC%A0%E4%B8%89' \
-d 'phone=13381789076'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthInsuranceInstInsureBillsQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.phone="13381789076"
req.flow_id="1454235435245001"
req.insure_counts="5"
req.insured_name="张三"
req.insured_cert_no="11010109094973"
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.bills.query");
add_param(pRequest,"phone","13381789076");
add_param(pRequest,"flow_id","1454235435245001");
add_param(pRequest,"insure_counts","5");
add_param(pRequest,"insured_name","张三");
add_param(pRequest,"insured_cert_no","11010109094973");
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.bills.query', {
'phone':'13381789076',
'flow_id':'1454235435245001',
'insure_counts':'5',
'insured_name':'张三',
'insured_cert_no':'11010109094973'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})