TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripAslanIeAgentRefundButuiRequest req = new AlitripAslanIeAgentRefundButuiRequest();
req.setButuiPrice(123L);
req.setRefundId(90901321352L);
req.setAgentId(5055L);
req.setOrderId(40334324321L);
AlitripAslanIeAgentRefundButuiResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripAslanIeAgentRefundButuiRequest req = new AlitripAslanIeAgentRefundButuiRequest();
req.ButuiPrice = 123L;
req.RefundId = 90901321352L;
req.AgentId = 5055L;
req.OrderId = 40334324321L;
AlitripAslanIeAgentRefundButuiResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripAslanIeAgentRefundButuiRequest;
$req->setButuiPrice("123");
$req->setRefundId("90901321352");
$req->setAgentId("5055");
$req->setOrderId("40334324321");
$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=alitrip.aslan.ie.agent.refund.butui' \
-d 'partner_id=apidoc' \
-d 'sign=877BA306DD1CB50FA72E508FCEE26FC6' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-21+22%3A33%3A56' \
-d 'v=2.0' \
-d 'agent_id=5055' \
-d 'butui_price=123' \
-d 'order_id=40334324321' \
-d 'refund_id=90901321352'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripAslanIeAgentRefundButuiRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.butui_price=123
req.refund_id=90901321352
req.agent_id=5055
req.order_id=40334324321
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,"alitrip.aslan.ie.agent.refund.butui");
add_param(pRequest,"butui_price","123");
add_param(pRequest,"refund_id","90901321352");
add_param(pRequest,"agent_id","5055");
add_param(pRequest,"order_id","40334324321");
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('alitrip.aslan.ie.agent.refund.butui', {
'butui_price':'123',
'refund_id':'90901321352',
'agent_id':'5055',
'order_id':'40334324321'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})