TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthVaccineRegisterSubmitRequest req = new AlibabaAlihealthVaccineRegisterSubmitRequest();
AlibabaAlihealthVaccineRegisterSubmitRequest.SubmitVcRegisterRequest obj1 = new AlibabaAlihealthVaccineRegisterSubmitRequest.SubmitVcRegisterRequest();
obj1.setRegisterId("123");
obj1.setProvinceCode(640000L);
obj1.setCityCode(640100L);
obj1.setAreaCode(640104L);
obj1.setProvinceName("宁夏回族自治区");
obj1.setCityName("银川市");
obj1.setAreaName("兴庆区");
obj1.setPovId(123456L);
obj1.setAlipayUserId("20129382743");
obj1.setVaccineId("998");
obj1.setVaccineName(儿童流感病毒裂解疫苗(进口)L);
obj1.setCreateTime("2021-09-01 08:00:00");
obj1.setMobile("12345678901");
obj1.setAppChannel("yl/alipay");
req.setTopRequest(obj1);
AlibabaAlihealthVaccineRegisterSubmitResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthVaccineRegisterSubmitRequest req = new AlibabaAlihealthVaccineRegisterSubmitRequest();
AlibabaAlihealthVaccineRegisterSubmitRequest.SubmitVcRegisterRequestDomain obj1 = new AlibabaAlihealthVaccineRegisterSubmitRequest.SubmitVcRegisterRequestDomain();
obj1.RegisterId = "123";
obj1.ProvinceCode = 640000L;
obj1.CityCode = 640100L;
obj1.AreaCode = 640104L;
obj1.ProvinceName = "宁夏回族自治区";
obj1.CityName = "银川市";
obj1.AreaName = "兴庆区";
obj1.PovId = 123456L;
obj1.AlipayUserId = "20129382743";
obj1.VaccineId = "998";
obj1.VaccineName = 儿童流感病毒裂解疫苗(进口)L;
obj1.CreateTime = "2021-09-01 08:00:00";
obj1.Mobile = "12345678901";
obj1.AppChannel = "yl/alipay";
req.TopRequest_ = obj1;
AlibabaAlihealthVaccineRegisterSubmitResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthVaccineRegisterSubmitRequest;
$top_request = new SubmitVcRegisterRequest;
$top_request->register_id="123";
$top_request->province_code="640000";
$top_request->city_code="640100";
$top_request->area_code="640104";
$top_request->province_name="宁夏回族自治区";
$top_request->city_name="银川市";
$top_request->area_name="兴庆区";
$top_request->pov_id="123456";
$top_request->alipay_user_id="20129382743";
$top_request->vaccine_id="998";
$top_request->vaccine_name="儿童流感病毒裂解疫苗(进口)";
$top_request->create_time="2021-09-01 08:00:00";
$top_request->mobile="12345678901";
$top_request->app_channel="yl/alipay";
$req->setTopRequest(json_encode($top_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.vaccine.register.submit' \
-d 'partner_id=apidoc' \
-d 'sign=1D0CC1D3EAD90D10C880C3E91657C2C7' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-04-05+04%3A36%3A57' \
-d 'v=2.0' \
-d 'top_request=%E6%97%A0'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthVaccineRegisterSubmitRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.top_request="无"
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.vaccine.register.submit");
add_param(pRequest,"top_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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.alihealth.vaccine.register.submit', {
'top_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})