TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmgQualitycontrolInspectorderTwqueryRequest req = new TmgQualitycontrolInspectorderTwqueryRequest();
TmgQualitycontrolInspectorderTwqueryRequest.TmhkTWInspectInfoQuery obj1 = new TmgQualitycontrolInspectorderTwqueryRequest.TmhkTWInspectInfoQuery();
obj1.setSellerStoreCode("TOF_JS_01");
obj1.setSupplierId("123");
obj1.setGdsStoreCode("TRAN_STORE_30221259");
obj1.setTradeId(12345L);
obj1.setJdType("scGoodsIdentity#0#0");
req.setTmhkTwInspectInfoQuery(obj1);
TmgQualitycontrolInspectorderTwqueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmgQualitycontrolInspectorderTwqueryRequest req = new TmgQualitycontrolInspectorderTwqueryRequest();
TmgQualitycontrolInspectorderTwqueryRequest.TmhkTWInspectInfoQueryDomain obj1 = new TmgQualitycontrolInspectorderTwqueryRequest.TmhkTWInspectInfoQueryDomain();
obj1.SellerStoreCode = "TOF_JS_01";
obj1.SupplierId = "123";
obj1.GdsStoreCode = "TRAN_STORE_30221259";
obj1.TradeId = 12345L;
obj1.JdType = "scGoodsIdentity#0#0";
req.TmhkTwInspectInfoQuery_ = obj1;
TmgQualitycontrolInspectorderTwqueryResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmgQualitycontrolInspectorderTwqueryRequest;
$tmhk_tw_inspect_info_query = new TmhkTWInspectInfoQuery;
$tmhk_tw_inspect_info_query->seller_store_code="TOF_JS_01";
$tmhk_tw_inspect_info_query->supplier_id="123";
$tmhk_tw_inspect_info_query->gds_store_code="TRAN_STORE_30221259";
$tmhk_tw_inspect_info_query->trade_id="12345";
$tmhk_tw_inspect_info_query->jd_type="scGoodsIdentity#0#0";
$req->setTmhkTwInspectInfoQuery(json_encode($tmhk_tw_inspect_info_query));
$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=taobao.tmg.qualitycontrol.inspectorder.twquery' \
-d 'partner_id=apidoc' \
-d 'sign=4700C64A119B56BC2CA478BC34C7C6EF' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-07+11%3A57%3A11' \
-d 'v=2.0' \
-d 'tmhk_tw_inspect_info_query=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmgQualitycontrolInspectorderTwqueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.tmhk_tw_inspect_info_query="数据结构示例JSON格式"
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,"taobao.tmg.qualitycontrol.inspectorder.twquery");
add_param(pRequest,"tmhk_tw_inspect_info_query","数据结构JSON示例");
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('taobao.tmg.qualitycontrol.inspectorder.twquery', {
'tmhk_tw_inspect_info_query':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})