TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaHealthVaccinAppointmentResultNotifyRequest req = new AlibabaHealthVaccinAppointmentResultNotifyRequest();
req.setAppointResult(true);
req.setOrderId("111231231");
req.setPeriodSeqNo(1L);
req.setOutId("112312llkj");
req.setFailReason("库存不足");
req.setSuccessCode("111");
AlibabaHealthVaccinAppointmentResultNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaHealthVaccinAppointmentResultNotifyRequest req = new AlibabaHealthVaccinAppointmentResultNotifyRequest();
req.AppointResult = true;
req.OrderId = "111231231";
req.PeriodSeqNo = 1L;
req.OutId = "112312llkj";
req.FailReason = "库存不足";
req.SuccessCode = "111";
AlibabaHealthVaccinAppointmentResultNotifyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaHealthVaccinAppointmentResultNotifyRequest;
$req->setAppointResult("true");
$req->setOrderId("111231231");
$req->setPeriodSeqNo("1");
$req->setOutId("112312llkj");
$req->setFailReason("库存不足");
$req->setSuccessCode("111");
$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.appointment.result.notify' \
-d 'partner_id=apidoc' \
-d 'sign=CD449EED0F076D685BDCAB7028A37DF7' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-25+23%3A25%3A53' \
-d 'v=2.0' \
-d 'appoint_result=true' \
-d 'fail_reason=%E5%BA%93%E5%AD%98%E4%B8%8D%E8%B6%B3' \
-d 'order_id=111231231' \
-d 'out_id=112312llkj' \
-d 'period_seq_no=1' \
-d 'success_code=111'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaHealthVaccinAppointmentResultNotifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.appoint_result=true
req.order_id="111231231"
req.period_seq_no=1
req.out_id="112312llkj"
req.fail_reason="库存不足"
req.success_code="111"
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.appointment.result.notify");
add_param(pRequest,"appoint_result","true");
add_param(pRequest,"order_id","111231231");
add_param(pRequest,"period_seq_no","1");
add_param(pRequest,"out_id","112312llkj");
add_param(pRequest,"fail_reason","库存不足");
add_param(pRequest,"success_code","111");
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.appointment.result.notify', {
'appoint_result':'true',
'order_id':'111231231',
'period_seq_no':'1',
'out_id':'112312llkj',
'fail_reason':'库存不足',
'success_code':'111'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})