TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaHealthVaccinOrderUpdateRequest req = new AlibabaHealthVaccinOrderUpdateRequest();
req.setActionTime(11111L);
req.setActionType("update");
req.setOrderId("111");
req.setIsvNotInoculateReason("重复预约");
req.setAttribute("{}");
AlibabaHealthVaccinOrderUpdateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaHealthVaccinOrderUpdateRequest req = new AlibabaHealthVaccinOrderUpdateRequest();
req.ActionTime = 11111L;
req.ActionType = "update";
req.OrderId = "111";
req.IsvNotInoculateReason = "重复预约";
req.Attribute = "{}";
AlibabaHealthVaccinOrderUpdateResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaHealthVaccinOrderUpdateRequest;
$req->setActionTime("11111");
$req->setActionType("update");
$req->setOrderId("111");
$req->setIsvNotInoculateReason("重复预约");
$req->setAttribute("{}");
$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.order.update' \
-d 'partner_id=apidoc' \
-d 'sign=8C00311680B7F096F17A1F158C0A5C12' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-25+23%3A46%3A57' \
-d 'v=2.0' \
-d 'action_time=11111' \
-d 'action_type=update' \
-d 'attribute=%7B%7D' \
-d 'isv_not_inoculate_reason=%E9%87%8D%E5%A4%8D%E9%A2%84%E7%BA%A6' \
-d 'order_id=111'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaHealthVaccinOrderUpdateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.action_time=11111
req.action_type="update"
req.order_id="111"
req.isv_not_inoculate_reason="重复预约"
req.attribute="{}"
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.order.update");
add_param(pRequest,"action_time","11111");
add_param(pRequest,"action_type","update");
add_param(pRequest,"order_id","111");
add_param(pRequest,"isv_not_inoculate_reason","重复预约");
add_param(pRequest,"attribute","{}");
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.order.update', {
'action_time':'11111',
'action_type':'update',
'order_id':'111',
'isv_not_inoculate_reason':'重复预约',
'attribute':'{}'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})