TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripAslanIeAgentRefundRefuseRequest req = new AlitripAslanIeAgentRefundRefuseRequest();
req.setApplyId(475912L);
req.setOrderId(412563987L);
req.setAgentAnswer("拒绝");
req.setAgentId(6033L);
AlitripAslanIeAgentRefundRefuseResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripAslanIeAgentRefundRefuseRequest req = new AlitripAslanIeAgentRefundRefuseRequest();
req.ApplyId = 475912L;
req.OrderId = 412563987L;
req.AgentAnswer = "拒绝";
req.AgentId = 6033L;
AlitripAslanIeAgentRefundRefuseResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripAslanIeAgentRefundRefuseRequest;
$req->setApplyId("475912");
$req->setOrderId("412563987");
$req->setAgentAnswer("拒绝");
$req->setAgentId("6033");
$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.aslan.ie.agent.refund.refuse' \
-d 'partner_id=apidoc' \
-d 'session=d2c0d6c4-bbe0-4b83-a1ea-f7569f36c2e3' \
-d 'sign=63B54FEB049716EF2CCD0C3A1C31C8C4' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-23+17%3A58%3A09' \
-d 'v=2.0' \
-d 'agent_answer=%E6%8B%92%E7%BB%9D' \
-d 'agent_id=6033' \
-d 'apply_id=475912' \
-d 'order_id=412563987'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripAslanIeAgentRefundRefuseRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.apply_id=475912
req.order_id=412563987
req.agent_answer="拒绝"
req.agent_id=6033
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.aslan.ie.agent.refund.refuse");
add_param(pRequest,"apply_id","475912");
add_param(pRequest,"order_id","412563987");
add_param(pRequest,"agent_answer","拒绝");
add_param(pRequest,"agent_id","6033");
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.aslan.ie.agent.refund.refuse', {
'apply_id':'475912',
'order_id':'412563987',
'agent_answer':'拒绝',
'agent_id':'6033'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})