TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripXhotelChannelNotifyRequest req = new AlitripXhotelChannelNotifyRequest();
AlitripXhotelChannelNotifyRequest.OrderNotifyQuery obj1 = new AlitripXhotelChannelNotifyRequest.OrderNotifyQuery();
obj1.setPayTime(StringUtils.parseDateTime("2020-02-10 12:00:00"));
obj1.setBizOrderId(2222222L);
obj1.setNotifyType(0L);
obj1.setPlatformPromotion(11111L);
obj1.setMemberCardNo("a12134");
req.setOrderNotifyQuery(obj1);
AlitripXhotelChannelNotifyResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripXhotelChannelNotifyRequest req = new AlitripXhotelChannelNotifyRequest();
AlitripXhotelChannelNotifyRequest.OrderNotifyQueryDomain obj1 = new AlitripXhotelChannelNotifyRequest.OrderNotifyQueryDomain();
obj1.PayTime = DateTime.Parse(2020-02-10 12:00:00");
obj1.BizOrderId = 2222222L;
obj1.NotifyType = 0L;
obj1.PlatformPromotion = 11111L;
obj1.MemberCardNo = "a12134";
req.OrderNotifyQuery_ = obj1;
AlitripXhotelChannelNotifyResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripXhotelChannelNotifyRequest;
$order_notify_query = new OrderNotifyQuery;
$order_notify_query->pay_time="2020-02-10 12:00:00";
$order_notify_query->biz_order_id="2222222";
$order_notify_query->notify_type="0";
$order_notify_query->platform_promotion="11111";
$order_notify_query->member_card_no="a12134";
$req->setOrderNotifyQuery(json_encode($order_notify_query));
$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=alitrip.xhotel.channel.notify' \
-d 'partner_id=apidoc' \
-d 'session=9c2ca110-0ba5-4b9b-9903-7e162929bc40' \
-d 'sign=BC959FD497C728E2CB53958910D8A715' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-12-04+01%3A29%3A04' \
-d 'v=2.0' \
-d 'order_notify_query=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripXhotelChannelNotifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.order_notify_query=""
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,"alitrip.xhotel.channel.notify");
add_param(pRequest,"order_notify_query","数据结构JSON示例");
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('alitrip.xhotel.channel.notify', {
'order_notify_query':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})