TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaHealthVaccinNoticeTimebucketRemindRequest req = new AlibabaHealthVaccinNoticeTimebucketRemindRequest();
req.setAlipayUserId("支付宝id");
req.setVaccineName("狂犬病疫苗");
req.setReserveDate("2019-02-08");
req.setName("小明");
req.setTheTimes("第一针");
req.setPovStoreName("闻潮社区卫生服务中心");
req.setReserveTime("08:00-09:00");
req.setMobile("18801112312");
AlibabaHealthVaccinNoticeTimebucketRemindResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaHealthVaccinNoticeTimebucketRemindRequest req = new AlibabaHealthVaccinNoticeTimebucketRemindRequest();
req.AlipayUserId = "支付宝id";
req.VaccineName = "狂犬病疫苗";
req.ReserveDate = "2019-02-08";
req.Name = "小明";
req.TheTimes = "第一针";
req.PovStoreName = "闻潮社区卫生服务中心";
req.ReserveTime = "08:00-09:00";
req.Mobile = "18801112312";
AlibabaHealthVaccinNoticeTimebucketRemindResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaHealthVaccinNoticeTimebucketRemindRequest;
$req->setAlipayUserId("支付宝id");
$req->setVaccineName("狂犬病疫苗");
$req->setReserveDate("2019-02-08");
$req->setName("小明");
$req->setTheTimes("第一针");
$req->setPovStoreName("闻潮社区卫生服务中心");
$req->setReserveTime("08:00-09:00");
$req->setMobile("18801112312");
$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.timebucket.remind' \
-d 'partner_id=apidoc' \
-d 'sign=020A38F85B9931FD30AE83E63C2F9CCB' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-25+23%3A51%3A57' \
-d 'v=2.0' \
-d 'alipay_user_id=%E6%94%AF%E4%BB%98%E5%AE%9Did' \
-d 'mobile=18801112312' \
-d 'name=%E5%B0%8F%E6%98%8E' \
-d 'pov_store_name=%E9%97%BB%E6%BD%AE%E7%A4%BE%E5%8C%BA%E5%8D%AB%E7%94%9F%E6%9C%8D%E5%8A%A1%E4%B8%AD%E5%BF%83' \
-d 'reserve_date=2019-02-08' \
-d 'reserve_time=08%3A00-09%3A00' \
-d 'the_times=%E7%AC%AC%E4%B8%80%E9%92%88' \
-d 'vaccine_name=%E7%8B%82%E7%8A%AC%E7%97%85%E7%96%AB%E8%8B%97'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaHealthVaccinNoticeTimebucketRemindRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.alipay_user_id="支付宝id"
req.vaccine_name="狂犬病疫苗"
req.reserve_date="2019-02-08"
req.name="小明"
req.the_times="第一针"
req.pov_store_name="闻潮社区卫生服务中心"
req.reserve_time="08:00-09:00"
req.mobile="18801112312"
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.timebucket.remind");
add_param(pRequest,"alipay_user_id","支付宝id");
add_param(pRequest,"vaccine_name","狂犬病疫苗");
add_param(pRequest,"reserve_date","2019-02-08");
add_param(pRequest,"name","小明");
add_param(pRequest,"the_times","第一针");
add_param(pRequest,"pov_store_name","闻潮社区卫生服务中心");
add_param(pRequest,"reserve_time","08:00-09:00");
add_param(pRequest,"mobile","18801112312");
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.timebucket.remind', {
'alipay_user_id':'支付宝id',
'vaccine_name':'狂犬病疫苗',
'reserve_date':'2019-02-08',
'name':'小明',
'the_times':'第一针',
'pov_store_name':'闻潮社区卫生服务中心',
'reserve_time':'08:00-09:00',
'mobile':'18801112312'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})