TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaHealthVaccinAppointmentSyncpickstatusRequest req = new AlibabaHealthVaccinAppointmentSyncpickstatusRequest();
AlibabaHealthVaccinAppointmentSyncpickstatusRequest.SyncPickStatusReq obj1 = new AlibabaHealthVaccinAppointmentSyncpickstatusRequest.SyncPickStatusReq();
List<AlibabaHealthVaccinAppointmentSyncpickstatusRequest.AppointmentRecordPickStatusDto> list3 = new ArrayList<AlibabaHealthVaccinAppointmentSyncpickstatusRequest.AppointmentRecordPickStatusDto>();
AlibabaHealthVaccinAppointmentSyncpickstatusRequest.AppointmentRecordPickStatusDto obj4 = new AlibabaHealthVaccinAppointmentSyncpickstatusRequest.AppointmentRecordPickStatusDto();
list3.add(obj4);
obj4.setPickStatus(1L);
obj4.setAppointmentId("A0001");
obj4.setPickTime(1611039799L);
obj1.setData(list3);
obj1.setOutBizId("O0001");
obj1.setOutPovId("P0001");
req.setParamSyncPickStatusReq(obj1);
AlibabaHealthVaccinAppointmentSyncpickstatusResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaHealthVaccinAppointmentSyncpickstatusRequest req = new AlibabaHealthVaccinAppointmentSyncpickstatusRequest();
AlibabaHealthVaccinAppointmentSyncpickstatusRequest.SyncPickStatusReqDomain obj1 = new AlibabaHealthVaccinAppointmentSyncpickstatusRequest.SyncPickStatusReqDomain();
List<AlibabaHealthVaccinAppointmentSyncpickstatusRequest.AppointmentRecordPickStatusDtoDomain> list3 = new List<AlibabaHealthVaccinAppointmentSyncpickstatusRequest.AppointmentRecordPickStatusDtoDomain>();
AlibabaHealthVaccinAppointmentSyncpickstatusRequest.AppointmentRecordPickStatusDtoDomain obj4 = new AlibabaHealthVaccinAppointmentSyncpickstatusRequest.AppointmentRecordPickStatusDtoDomain();
list3.Add(obj4);
obj4.PickStatus = 1L;
obj4.AppointmentId = "A0001";
obj4.PickTime = 1611039799L;
obj1.Data= list3;
obj1.OutBizId = "O0001";
obj1.OutPovId = "P0001";
req.ParamSyncPickStatusReq_ = obj1;
AlibabaHealthVaccinAppointmentSyncpickstatusResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaHealthVaccinAppointmentSyncpickstatusRequest;
$param_sync_pick_status_req = new SyncPickStatusReq;
$data = new AppointmentRecordPickStatusDto;
$data->pick_status="1";
$data->appointment_id="A0001";
$data->pick_time="1611039799";
$param_sync_pick_status_req->data = $data;
$param_sync_pick_status_req->out_biz_id="O0001";
$param_sync_pick_status_req->out_pov_id="P0001";
$req->setParamSyncPickStatusReq(json_encode($param_sync_pick_status_req));
$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.syncpickstatus' \
-d 'partner_id=apidoc' \
-d 'sign=B27B45BAC2A4007966A4F38987137F2F' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-25+23%3A22%3A37' \
-d 'v=2.0' \
-d 'param_sync_pick_status_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaHealthVaccinAppointmentSyncpickstatusRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_sync_pick_status_req=""
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.syncpickstatus");
add_param(pRequest,"param_sync_pick_status_req","数据结构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.health.vaccin.appointment.syncpickstatus', {
'param_sync_pick_status_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})