TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthMedicalReservationConfirmRequest req = new AlibabaAlihealthMedicalReservationConfirmRequest();
AlibabaAlihealthMedicalReservationConfirmRequest.ConfirmReservationTopRequest obj1 = new AlibabaAlihealthMedicalReservationConfirmRequest.ConfirmReservationTopRequest();
obj1.setIsvReservationRecordId("2000000190001004122");
obj1.setConfirmedScheduledFinishTime(StringUtils.parseDateTime("2021-09-29 22:30:00"));
obj1.setConfirmedScheduledTime(StringUtils.parseDateTime("2021-09-29 22:00:00"));
req.setConfirmReservationTopRequest(obj1);
AlibabaAlihealthMedicalReservationConfirmResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthMedicalReservationConfirmRequest req = new AlibabaAlihealthMedicalReservationConfirmRequest();
AlibabaAlihealthMedicalReservationConfirmRequest.ConfirmReservationTopRequestDomain obj1 = new AlibabaAlihealthMedicalReservationConfirmRequest.ConfirmReservationTopRequestDomain();
obj1.IsvReservationRecordId = "2000000190001004122";
obj1.ConfirmedScheduledFinishTime = DateTime.Parse(2021-09-29 22:30:00");
obj1.ConfirmedScheduledTime = DateTime.Parse(2021-09-29 22:00:00");
req.ConfirmReservationTopRequest_ = obj1;
AlibabaAlihealthMedicalReservationConfirmResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthMedicalReservationConfirmRequest;
$confirm_reservation_top_request = new ConfirmReservationTopRequest;
$confirm_reservation_top_request->isv_reservation_record_id="2000000190001004122";
$confirm_reservation_top_request->confirmed_scheduled_finish_time="2021-09-29 22:30:00";
$confirm_reservation_top_request->confirmed_scheduled_time="2021-09-29 22:00:00";
$req->setConfirmReservationTopRequest(json_encode($confirm_reservation_top_request));
$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.alihealth.medical.reservation.confirm' \
-d 'partner_id=apidoc' \
-d 'sign=0571D1D9C077C516F75C57E103863551' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-09+08%3A49%3A08' \
-d 'v=2.0' \
-d 'confirm_reservation_top_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthMedicalReservationConfirmRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.confirm_reservation_top_request=""
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.alihealth.medical.reservation.confirm");
add_param(pRequest,"confirm_reservation_top_request","数据结构JSON示例");
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.alihealth.medical.reservation.confirm', {
'confirm_reservation_top_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})