TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaHealthVaccinVaccinateCompleteRequest req = new AlibabaHealthVaccinVaccinateCompleteRequest();
req.setAlipayUserId("2088332589401234");
req.setIsvUserId("3928019");
req.setOrderId("86837");
req.setName("王小明");
req.setMobile("18801293033");
req.setVaccinateDate("2020-07-01");
req.setVaccinateTime("09:00-11:30");
List<AlibabaHealthVaccinVaccinateCompleteRequest.VaccineInfo> list2 = new ArrayList<AlibabaHealthVaccinVaccinateCompleteRequest.VaccineInfo>();
AlibabaHealthVaccinVaccinateCompleteRequest.VaccineInfo obj3 = new AlibabaHealthVaccinVaccinateCompleteRequest.VaccineInfo();
list2.add(obj3);
obj3.setVaccineName("卡介疫苗");
obj3.setVaccineCode("100AF1");
obj3.setTheTimes(1L);
obj3.setVaccineGbCode("100AF1");
req.setVaccineList(list2);
AlibabaHealthVaccinVaccinateCompleteResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaHealthVaccinVaccinateCompleteRequest req = new AlibabaHealthVaccinVaccinateCompleteRequest();
req.AlipayUserId = "2088332589401234";
req.IsvUserId = "3928019";
req.OrderId = "86837";
req.Name = "王小明";
req.Mobile = "18801293033";
req.VaccinateDate = "2020-07-01";
req.VaccinateTime = "09:00-11:30";
List<AlibabaHealthVaccinVaccinateCompleteRequest.VaccineInfoDomain> list2 = new List<AlibabaHealthVaccinVaccinateCompleteRequest.VaccineInfoDomain>();
AlibabaHealthVaccinVaccinateCompleteRequest.VaccineInfoDomain obj3 = new AlibabaHealthVaccinVaccinateCompleteRequest.VaccineInfoDomain();
list2.Add(obj3);
obj3.VaccineName = "卡介疫苗";
obj3.VaccineCode = "100AF1";
obj3.TheTimes = 1L;
obj3.VaccineGbCode = "100AF1";
req.VaccineList_ = list2;
AlibabaHealthVaccinVaccinateCompleteResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaHealthVaccinVaccinateCompleteRequest;
$req->setAlipayUserId("2088332589401234");
$req->setIsvUserId("3928019");
$req->setOrderId("86837");
$req->setName("王小明");
$req->setMobile("18801293033");
$req->setVaccinateDate("2020-07-01");
$req->setVaccinateTime("09:00-11:30");
$vaccine_list = new VaccineInfo;
$vaccine_list->vaccine_name="卡介疫苗";
$vaccine_list->vaccine_code="100AF1";
$vaccine_list->the_times="1";
$vaccine_list->vaccine_gb_code="100AF1";
$req->setVaccineList(json_encode($vaccine_list));
$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.health.vaccin.vaccinate.complete' \
-d 'partner_id=apidoc' \
-d 'sign=3C8A851FDEFA760C03F6A9841216204B' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-25+23%3A38%3A50' \
-d 'v=2.0' \
-d 'alipay_user_id=2088332589401234' \
-d 'isv_user_id=3928019' \
-d 'mobile=18801293033' \
-d 'name=%E7%8E%8B%E5%B0%8F%E6%98%8E' \
-d 'order_id=86837' \
-d 'vaccinate_date=2020-07-01' \
-d 'vaccinate_time=09%3A00-11%3A30' \
-d 'vaccine_list=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaHealthVaccinVaccinateCompleteRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.alipay_user_id="2088332589401234"
req.isv_user_id="3928019"
req.order_id="86837"
req.name="王小明"
req.mobile="18801293033"
req.vaccinate_date="2020-07-01"
req.vaccinate_time="09:00-11:30"
req.vaccine_list=""
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.health.vaccin.vaccinate.complete");
add_param(pRequest,"alipay_user_id","2088332589401234");
add_param(pRequest,"isv_user_id","3928019");
add_param(pRequest,"order_id","86837");
add_param(pRequest,"name","王小明");
add_param(pRequest,"mobile","18801293033");
add_param(pRequest,"vaccinate_date","2020-07-01");
add_param(pRequest,"vaccinate_time","09:00-11:30");
add_param(pRequest,"vaccine_list","数据结构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.health.vaccin.vaccinate.complete', {
'alipay_user_id':'2088332589401234',
'isv_user_id':'3928019',
'order_id':'86837',
'name':'王小明',
'mobile':'18801293033',
'vaccinate_date':'2020-07-01',
'vaccinate_time':'09:00-11:30',
'vaccine_list':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})