TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaHealthVaccinNoticeOrderCreateRequest req = new AlibabaHealthVaccinNoticeOrderCreateRequest();
req.setSex(1L);
req.setAge(28L);
req.setReserveDate("2019-05-01");
req.setAlipayUserId("123456");
req.setVaccineInfo("疫苗id1|疫苗名称1|疫苗类型1,疫苗id2|疫苗名称2|疫苗类型2");
req.setOuterUserId("123456");
req.setOrderId("123456");
req.setMobile("13211111111");
req.setName("张三");
req.setAgeType(1L);
req.setAddress("福州市XX路");
req.setPovStoreName("测试门店");
req.setReserveTime("09:00-10:00");
req.setOrderDetailUrl("https://www.xxxxx.com");
req.setArea("西湖");
req.setCity("杭州");
req.setProvince("浙江");
AlibabaHealthVaccinNoticeOrderCreateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaHealthVaccinNoticeOrderCreateRequest req = new AlibabaHealthVaccinNoticeOrderCreateRequest();
req.Sex = 1L;
req.Age = 28L;
req.ReserveDate = "2019-05-01";
req.AlipayUserId = "123456";
req.VaccineInfo = "疫苗id1|疫苗名称1|疫苗类型1,疫苗id2|疫苗名称2|疫苗类型2";
req.OuterUserId = "123456";
req.OrderId = "123456";
req.Mobile = "13211111111";
req.Name = "张三";
req.AgeType = 1L;
req.Address = "福州市XX路";
req.PovStoreName = "测试门店";
req.ReserveTime = "09:00-10:00";
req.OrderDetailUrl = "https://www.xxxxx.com";
req.Area = "西湖";
req.City = "杭州";
req.Province = "浙江";
AlibabaHealthVaccinNoticeOrderCreateResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaHealthVaccinNoticeOrderCreateRequest;
$req->setSex("1");
$req->setAge("28");
$req->setReserveDate("2019-05-01");
$req->setAlipayUserId("123456");
$req->setVaccineInfo("疫苗id1|疫苗名称1|疫苗类型1,疫苗id2|疫苗名称2|疫苗类型2");
$req->setOuterUserId("123456");
$req->setOrderId("123456");
$req->setMobile("13211111111");
$req->setName("张三");
$req->setAgeType("1");
$req->setAddress("福州市XX路");
$req->setPovStoreName("测试门店");
$req->setReserveTime("09:00-10:00");
$req->setOrderDetailUrl("https://www.xxxxx.com");
$req->setArea("西湖");
$req->setCity("杭州");
$req->setProvince("浙江");
$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.order.create' \
-d 'partner_id=apidoc' \
-d 'sign=9D4C3E4273A647E39DB6DF789F3D6B21' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-25+23%3A51%3A57' \
-d 'v=2.0' \
-d 'address=%E7%A6%8F%E5%B7%9E%E5%B8%82XX%E8%B7%AF' \
-d 'age=28' \
-d 'age_type=1' \
-d 'alipay_user_id=123456' \
-d 'area=%E8%A5%BF%E6%B9%96' \
-d 'city=%E6%9D%AD%E5%B7%9E' \
-d 'mobile=13211111111' \
-d 'name=%E5%BC%A0%E4%B8%89' \
-d 'order_detail_url=https%3A%2F%2Fwww.xxxxx.com' \
-d 'order_id=123456' \
-d 'outer_user_id=123456' \
-d 'pov_store_name=%E6%B5%8B%E8%AF%95%E9%97%A8%E5%BA%97' \
-d 'province=%E6%B5%99%E6%B1%9F' \
-d 'reserve_date=2019-05-01' \
-d 'reserve_time=09%3A00-10%3A00' \
-d 'sex=1' \
-d 'vaccine_info=%E7%96%AB%E8%8B%97id1%7C%E7%96%AB%E8%8B%97%E5%90%8D%E7%A7%B01%7C%E7%96%AB%E8%8B%97%E7%B1%BB%E5%9E%8B1%2C%E7%96%AB%E8%8B%97id2%7C%E7%96%AB%E8%8B%97%E5%90%8D%E7%A7%B02%7C%E7%96%AB%E8%8B%97%E7%B1%BB%E5%9E%8B2'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaHealthVaccinNoticeOrderCreateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.sex=1
req.age=28
req.reserve_date="2019-05-01"
req.alipay_user_id="123456"
req.vaccine_info="疫苗id1|疫苗名称1|疫苗类型1,疫苗id2|疫苗名称2|疫苗类型2"
req.outer_user_id="123456"
req.order_id="123456"
req.mobile="13211111111"
req.name="张三"
req.age_type=1
req.address="福州市XX路"
req.pov_store_name="测试门店"
req.reserve_time="09:00-10:00"
req.order_detail_url="https://www.xxxxx.com"
req.area="西湖"
req.city="杭州"
req.province="浙江"
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.order.create");
add_param(pRequest,"sex","1");
add_param(pRequest,"age","28");
add_param(pRequest,"reserve_date","2019-05-01");
add_param(pRequest,"alipay_user_id","123456");
add_param(pRequest,"vaccine_info","疫苗id1|疫苗名称1|疫苗类型1,疫苗id2|疫苗名称2|疫苗类型2");
add_param(pRequest,"outer_user_id","123456");
add_param(pRequest,"order_id","123456");
add_param(pRequest,"mobile","13211111111");
add_param(pRequest,"name","张三");
add_param(pRequest,"age_type","1");
add_param(pRequest,"address","福州市XX路");
add_param(pRequest,"pov_store_name","测试门店");
add_param(pRequest,"reserve_time","09:00-10:00");
add_param(pRequest,"order_detail_url","https://www.xxxxx.com");
add_param(pRequest,"area","西湖");
add_param(pRequest,"city","杭州");
add_param(pRequest,"province","浙江");
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.order.create', {
'sex':'1',
'age':'28',
'reserve_date':'2019-05-01',
'alipay_user_id':'123456',
'vaccine_info':'疫苗id1|疫苗名称1|疫苗类型1,疫苗id2|疫苗名称2|疫苗类型2',
'outer_user_id':'123456',
'order_id':'123456',
'mobile':'13211111111',
'name':'张三',
'age_type':'1',
'address':'福州市XX路',
'pov_store_name':'测试门店',
'reserve_time':'09:00-10:00',
'order_detail_url':'https://www.xxxxx.com',
'area':'西湖',
'city':'杭州',
'province':'浙江'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})