TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaHealthVaccinNoticeSendRequest req = new AlibabaHealthVaccinNoticeSendRequest();
req.setBirthday("2020-06-01");
req.setArea("朝阳区");
req.setAddress("北京市朝阳区呼家楼1号");
req.setOrderId("86837");
req.setPovName("呼家楼接种点");
req.setCity("北京市");
req.setPovNo("2088332589401234");
req.setSex(1L);
req.setMobile("18801293033");
List<AlibabaHealthVaccinNoticeSendRequest.VaccineInfo> list2 = new ArrayList<AlibabaHealthVaccinNoticeSendRequest.VaccineInfo>();
AlibabaHealthVaccinNoticeSendRequest.VaccineInfo obj3 = new AlibabaHealthVaccinNoticeSendRequest.VaccineInfo();
list2.add(obj3);
obj3.setVaccineName("卡介苗");
obj3.setVaccineCode("100AF1");
obj3.setTheTimes(1L);
obj3.setVaccineGbCode("10002");
req.setVaccineList(list2);
req.setProvince("北京市");
req.setMessageType(1L);
req.setReserveTime("09:00-11:30");
req.setName("王小明");
req.setIsvUserId("3928019");
req.setReserveDate("2020-07-01");
req.setAlipayUserId("2088332589401234");
req.setAppChannel("yl");
AlibabaHealthVaccinNoticeSendResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaHealthVaccinNoticeSendRequest req = new AlibabaHealthVaccinNoticeSendRequest();
req.Birthday = "2020-06-01";
req.Area = "朝阳区";
req.Address = "北京市朝阳区呼家楼1号";
req.OrderId = "86837";
req.PovName = "呼家楼接种点";
req.City = "北京市";
req.PovNo = "2088332589401234";
req.Sex = 1L;
req.Mobile = "18801293033";
List<AlibabaHealthVaccinNoticeSendRequest.VaccineInfoDomain> list2 = new List<AlibabaHealthVaccinNoticeSendRequest.VaccineInfoDomain>();
AlibabaHealthVaccinNoticeSendRequest.VaccineInfoDomain obj3 = new AlibabaHealthVaccinNoticeSendRequest.VaccineInfoDomain();
list2.Add(obj3);
obj3.VaccineName = "卡介苗";
obj3.VaccineCode = "100AF1";
obj3.TheTimes = 1L;
obj3.VaccineGbCode = "10002";
req.VaccineList_ = list2;
req.Province = "北京市";
req.MessageType = 1L;
req.ReserveTime = "09:00-11:30";
req.Name = "王小明";
req.IsvUserId = "3928019";
req.ReserveDate = "2020-07-01";
req.AlipayUserId = "2088332589401234";
req.AppChannel = "yl";
AlibabaHealthVaccinNoticeSendResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaHealthVaccinNoticeSendRequest;
$req->setBirthday("2020-06-01");
$req->setArea("朝阳区");
$req->setAddress("北京市朝阳区呼家楼1号");
$req->setOrderId("86837");
$req->setPovName("呼家楼接种点");
$req->setCity("北京市");
$req->setPovNo("2088332589401234");
$req->setSex("1");
$req->setMobile("18801293033");
$vaccine_list = new VaccineInfo;
$vaccine_list->vaccine_name="卡介苗";
$vaccine_list->vaccine_code="100AF1";
$vaccine_list->the_times="1";
$vaccine_list->vaccine_gb_code="10002";
$req->setVaccineList(json_encode($vaccine_list));
$req->setProvince("北京市");
$req->setMessageType("1");
$req->setReserveTime("09:00-11:30");
$req->setName("王小明");
$req->setIsvUserId("3928019");
$req->setReserveDate("2020-07-01");
$req->setAlipayUserId("2088332589401234");
$req->setAppChannel("yl");
$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.notice.send' \
-d 'partner_id=apidoc' \
-d 'sign=5A05A84AC81DD5F47986359519047933' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-25+23%3A52%3A48' \
-d 'v=2.0' \
-d 'address=%E5%8C%97%E4%BA%AC%E5%B8%82%E6%9C%9D%E9%98%B3%E5%8C%BA%E5%91%BC%E5%AE%B6%E6%A5%BC1%E5%8F%B7' \
-d 'alipay_user_id=2088332589401234' \
-d 'app_channel=yl' \
-d 'area=%E6%9C%9D%E9%98%B3%E5%8C%BA' \
-d 'birthday=2020-06-01' \
-d 'city=%E5%8C%97%E4%BA%AC%E5%B8%82' \
-d 'isv_user_id=3928019' \
-d 'message_type=1' \
-d 'mobile=18801293033' \
-d 'name=%E7%8E%8B%E5%B0%8F%E6%98%8E' \
-d 'order_id=86837' \
-d 'pov_name=%E5%91%BC%E5%AE%B6%E6%A5%BC%E6%8E%A5%E7%A7%8D%E7%82%B9' \
-d 'pov_no=2088332589401234' \
-d 'province=%E5%8C%97%E4%BA%AC%E5%B8%82' \
-d 'reserve_date=2020-07-01' \
-d 'reserve_time=09%3A00-11%3A30' \
-d 'sex=1' \
-d 'vaccine_list=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaHealthVaccinNoticeSendRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.birthday="2020-06-01"
req.area="朝阳区"
req.address="北京市朝阳区呼家楼1号"
req.order_id="86837"
req.pov_name="呼家楼接种点"
req.city="北京市"
req.pov_no="2088332589401234"
req.sex=1
req.mobile="18801293033"
req.vaccine_list=""
req.province="北京市"
req.message_type=1
req.reserve_time="09:00-11:30"
req.name="王小明"
req.isv_user_id="3928019"
req.reserve_date="2020-07-01"
req.alipay_user_id="2088332589401234"
req.app_channel="yl"
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.notice.send");
add_param(pRequest,"birthday","2020-06-01");
add_param(pRequest,"area","朝阳区");
add_param(pRequest,"address","北京市朝阳区呼家楼1号");
add_param(pRequest,"order_id","86837");
add_param(pRequest,"pov_name","呼家楼接种点");
add_param(pRequest,"city","北京市");
add_param(pRequest,"pov_no","2088332589401234");
add_param(pRequest,"sex","1");
add_param(pRequest,"mobile","18801293033");
add_param(pRequest,"vaccine_list","数据结构JSON示例");
add_param(pRequest,"province","北京市");
add_param(pRequest,"message_type","1");
add_param(pRequest,"reserve_time","09:00-11:30");
add_param(pRequest,"name","王小明");
add_param(pRequest,"isv_user_id","3928019");
add_param(pRequest,"reserve_date","2020-07-01");
add_param(pRequest,"alipay_user_id","2088332589401234");
add_param(pRequest,"app_channel","yl");
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.notice.send', {
'birthday':'2020-06-01',
'area':'朝阳区',
'address':'北京市朝阳区呼家楼1号',
'order_id':'86837',
'pov_name':'呼家楼接种点',
'city':'北京市',
'pov_no':'2088332589401234',
'sex':'1',
'mobile':'18801293033',
'vaccine_list':'数据结构JSON示例',
'province':'北京市',
'message_type':'1',
'reserve_time':'09:00-11:30',
'name':'王小明',
'isv_user_id':'3928019',
'reserve_date':'2020-07-01',
'alipay_user_id':'2088332589401234',
'app_channel':'yl'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})