TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelOrderConfirmDelayRequest req = new XhotelOrderConfirmDelayRequest();
req.setTid(1231123123L);
req.setDelayMinute(20L);
req.setDelayReason("订单确认延时");
req.setSource(0L);
XhotelOrderConfirmDelayResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
XhotelOrderConfirmDelayRequest req = new XhotelOrderConfirmDelayRequest();
req.Tid = 1231123123L;
req.DelayMinute = 20L;
req.DelayReason = "订单确认延时";
req.Source = 0L;
XhotelOrderConfirmDelayResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new XhotelOrderConfirmDelayRequest;
$req->setTid("1231123123");
$req->setDelayMinute("20");
$req->setDelayReason("订单确认延时");
$req->setSource("0");
$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=taobao.xhotel.order.confirm.delay' \
-d 'partner_id=apidoc' \
-d 'session=f3dafb37-5144-4c10-b29c-e7f1d0c35c6e' \
-d 'sign=28C34E61357650396A3859DB61FD2234' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-12-04+01%3A19%3A22' \
-d 'v=2.0' \
-d 'delay_minute=20' \
-d 'delay_reason=%E8%AE%A2%E5%8D%95%E7%A1%AE%E8%AE%A4%E5%BB%B6%E6%97%B6' \
-d 'source=0' \
-d 'tid=1231123123'
# -*- coding: utf-8 -*-
import top.api
req=top.api.XhotelOrderConfirmDelayRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.tid=1231123123
req.delay_minute=20
req.delay_reason="订单确认延时"
req.source=0
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,"taobao.xhotel.order.confirm.delay");
add_param(pRequest,"tid","1231123123");
add_param(pRequest,"delay_minute","20");
add_param(pRequest,"delay_reason","订单确认延时");
add_param(pRequest,"source","0");
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('taobao.xhotel.order.confirm.delay', {
'tid':'1231123123',
'delay_minute':'20',
'delay_reason':'订单确认延时',
'source':'0'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})