TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripIeAgentRefundRefuseRequest req = new AlitripIeAgentRefundRefuseRequest();
req.setApplyId(475912L);
req.setOrderId(412563987L);
req.setAgentAnswer("拒绝");
req.setAgentId(6033L);
AlitripIeAgentRefundRefuseResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripIeAgentRefundRefuseRequest req = new AlitripIeAgentRefundRefuseRequest();
req.ApplyId = 475912L;
req.OrderId = 412563987L;
req.AgentAnswer = "拒绝";
req.AgentId = 6033L;
AlitripIeAgentRefundRefuseResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripIeAgentRefundRefuseRequest;
$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=taobao.alitrip.ie.agent.refund.refuse' \
-d 'partner_id=apidoc' \
-d 'session=ae9a77f3-8bad-4f2e-beb7-a6d6edf0e9d3' \
-d 'sign=AB82B08D27DAE3D2ECA0156A3E3FD319' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-21+22%3A05%3A17' \
-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.AlitripIeAgentRefundRefuseRequest(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,"taobao.alitrip.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('taobao.alitrip.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);
})