QimenCloudClient client = new DefaultQimenCloudClient(url, appkey, secret);
AlibabaAlihealthVaccinationStatusRequest req = new AlibabaAlihealthVaccinationStatusRequest();
req.setMobile("13511200918");
req.setUserName("张三");
req.setReserveDate("2018-09-19");
req.setPovName("北京和美妇儿医院");
req.setVaccineId("1133");
req.setPovCode("232421");
req.setVaccineName("宫颈癌");
req.setVaccineSubName("二价疫苗");
AlibabaAlihealthVaccinationStatusResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthVaccinationStatusRequest req = new AlibabaAlihealthVaccinationStatusRequest();
req.Mobile = "13511200918";
req.UserName = "张三";
req.ReserveDate = "2018-09-19";
req.PovName = "北京和美妇儿医院";
req.VaccineId = "1133";
req.PovCode = "232421";
req.VaccineName = "宫颈癌";
req.VaccineSubName = "二价疫苗";
AlibabaAlihealthVaccinationStatusResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthVaccinationStatusRequest;
$req->setMobile("13511200918");
$req->setUserName("张三");
$req->setReserveDate("2018-09-19");
$req->setPovName("北京和美妇儿医院");
$req->setVaccineId("1133");
$req->setPovCode("232421");
$req->setVaccineName("宫颈癌");
$req->setVaccineSubName("二价疫苗");
$resp = $c->execute($req, $sessionKey);
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=qimen.alibaba.alihealth.vaccination.status' \
-d 'partner_id=apidoc' \
-d 'session=b0140e18-d5b9-43d8-a238-be10f7c4e398' \
-d 'sign=4525100B21C3C89621BEA653D831F95B' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-25+23%3A41%3A52' \
-d 'v=2.0' \
-d 'mobile=13511200918' \
-d 'pov_code=232421' \
-d 'pov_name=%E5%8C%97%E4%BA%AC%E5%92%8C%E7%BE%8E%E5%A6%87%E5%84%BF%E5%8C%BB%E9%99%A2' \
-d 'reserve_date=2018-09-19' \
-d 'user_name=%E5%BC%A0%E4%B8%89' \
-d 'vaccine_id=1133' \
-d 'vaccine_name=%E5%AE%AB%E9%A2%88%E7%99%8C' \
-d 'vaccine_sub_name=%E4%BA%8C%E4%BB%B7%E7%96%AB%E8%8B%97'
# -*- coding: utf-8 -*-
import top.api
req=top.api.QimenAlibabaAlihealthVaccinationStatusRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.mobile="13511200918"
req.user_name="张三"
req.reserve_date="2018-09-19"
req.pov_name="北京和美妇儿医院"
req.vaccine_id="1133"
req.pov_code="232421"
req.vaccine_name="宫颈癌"
req.vaccine_sub_name="二价疫苗"
try:
resp= req.getResponse(sessionkey)
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,"qimen.alibaba.alihealth.vaccination.status");
add_param(pRequest,"mobile","13511200918");
add_param(pRequest,"user_name","张三");
add_param(pRequest,"reserve_date","2018-09-19");
add_param(pRequest,"pov_name","北京和美妇儿医院");
add_param(pRequest,"vaccine_id","1133");
add_param(pRequest,"pov_code","232421");
add_param(pRequest,"vaccine_name","宫颈癌");
add_param(pRequest,"vaccine_sub_name","二价疫苗");
pResponse = top_execute(pClient,pRequest,sessionKey);
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('qimen.alibaba.alihealth.vaccination.status', {
'mobile':'13511200918',
'user_name':'张三',
'reserve_date':'2018-09-19',
'pov_name':'北京和美妇儿医院',
'vaccine_id':'1133',
'pov_code':'232421',
'vaccine_name':'宫颈癌',
'vaccine_sub_name':'二价疫苗'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})