TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallExchangeGetRequest req = new TmallExchangeGetRequest();
req.setDisputeId(123123123L);
req.setFields("dispute_id, bizorder_id, num, buyer_nick, status, created, modified, reason, title, buyer_logistic_no, seller_logistic_no, bought_sku, exchange_sku, buyer_address, address, buyer_phone, buyer_logistic_name, seller_logistic_name, alipay_no, buyer_name, seller_nick,attributes");
TmallExchangeGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallExchangeGetRequest req = new TmallExchangeGetRequest();
req.DisputeId = 123123123L;
req.Fields = "dispute_id, bizorder_id, num, buyer_nick, status, created, modified, reason, title, buyer_logistic_no, seller_logistic_no, bought_sku, exchange_sku, buyer_address, address, buyer_phone, buyer_logistic_name, seller_logistic_name, alipay_no, buyer_name, seller_nick,attributes";
TmallExchangeGetResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallExchangeGetRequest;
$req->setDisputeId("123123123");
$req->setFields("dispute_id, bizorder_id, num, buyer_nick, status, created, modified, reason, title, buyer_logistic_no, seller_logistic_no, bought_sku, exchange_sku, buyer_address, address, buyer_phone, buyer_logistic_name, seller_logistic_name, alipay_no, buyer_name, seller_nick,attributes");
$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=tmall.exchange.get' \
-d 'partner_id=apidoc' \
-d 'session=a8497dc3-4d2b-4f91-8a1c-1d2606e13efa' \
-d 'sign=AA045C6F414C07AC254B8E12BAA90D3E' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-09+20%3A39%3A12' \
-d 'v=2.0' \
-d 'dispute_id=123123123' \
-d 'fields=dispute_id%2C+bizorder_id%2C+num%2C+buyer_nick%2C+status%2C+created%2C+modified%2C+reason%2C+title%2C+buyer_logistic_no%2C+seller_logistic_no%2C+bought_sku%2C+exchange_sku%2C+buyer_address%2C+address%2C+buyer_phone%2C+buyer_logistic_name%2C+seller_logistic_name%2C+alipay_no%2C+buyer_name%2C+seller_nick%2Cattributes'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallExchangeGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.dispute_id=123123123
req.fields="dispute_id, bizorder_id, num, buyer_nick, status, created, modified, reason, title, buyer_logistic_no, seller_logistic_no, bought_sku, exchange_sku, buyer_address, address, buyer_phone, buyer_logistic_name, seller_logistic_name, alipay_no, buyer_name, seller_nick,attributes"
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,"tmall.exchange.get");
add_param(pRequest,"dispute_id","123123123");
add_param(pRequest,"fields","dispute_id, bizorder_id, num, buyer_nick, status, created, modified, reason, title, buyer_logistic_no, seller_logistic_no, bought_sku, exchange_sku, buyer_address, address, buyer_phone, buyer_logistic_name, seller_logistic_name, alipay_no, buyer_name, seller_nick,attributes");
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('tmall.exchange.get', {
'dispute_id':'123123123',
'fields':'dispute_id, bizorder_id, num, buyer_nick, status, created, modified, reason, title, buyer_logistic_no, seller_logistic_no, bought_sku, exchange_sku, buyer_address, address, buyer_phone, buyer_logistic_name, seller_logistic_name, alipay_no, buyer_name, seller_nick,attributes'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})