TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallExchangeConsigngoodsRequest req = new TmallExchangeConsigngoodsRequest();
req.setDisputeId(123123123L);
req.setLogisticsNo("5452433553253");
req.setLogisticsType(200L);
req.setLogisticsCompanyName("申通快递");
req.setFields("dispute_id, bizorder_id, status, modified");
TmallExchangeConsigngoodsResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallExchangeConsigngoodsRequest req = new TmallExchangeConsigngoodsRequest();
req.DisputeId = 123123123L;
req.LogisticsNo = "5452433553253";
req.LogisticsType = 200L;
req.LogisticsCompanyName = "申通快递";
req.Fields = "dispute_id, bizorder_id, status, modified";
TmallExchangeConsigngoodsResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallExchangeConsigngoodsRequest;
$req->setDisputeId("123123123");
$req->setLogisticsNo("5452433553253");
$req->setLogisticsType("200");
$req->setLogisticsCompanyName("申通快递");
$req->setFields("dispute_id, bizorder_id, status, modified");
$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.consigngoods' \
-d 'partner_id=apidoc' \
-d 'session=2125d3c5-3582-49f9-a498-a2bbd31b239d' \
-d 'sign=E15EFF04E627B558ADF4E0803A91A541' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-09+21%3A12%3A05' \
-d 'v=2.0' \
-d 'dispute_id=123123123' \
-d 'fields=dispute_id%2C+bizorder_id%2C+status%2C+modified' \
-d 'logistics_company_name=%E7%94%B3%E9%80%9A%E5%BF%AB%E9%80%92' \
-d 'logistics_no=5452433553253' \
-d 'logistics_type=200'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallExchangeConsigngoodsRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.dispute_id=123123123
req.logistics_no="5452433553253"
req.logistics_type=200
req.logistics_company_name="申通快递"
req.fields="dispute_id, bizorder_id, status, modified"
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.consigngoods");
add_param(pRequest,"dispute_id","123123123");
add_param(pRequest,"logistics_no","5452433553253");
add_param(pRequest,"logistics_type","200");
add_param(pRequest,"logistics_company_name","申通快递");
add_param(pRequest,"fields","dispute_id, bizorder_id, status, modified");
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.consigngoods', {
'dispute_id':'123123123',
'logistics_no':'5452433553253',
'logistics_type':'200',
'logistics_company_name':'申通快递',
'fields':'dispute_id, bizorder_id, status, modified'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})