TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
IndustryClothYcTortSaveRequest req = new IndustryClothYcTortSaveRequest();
IndustryClothYcTortSaveRequest.TortRecordSaveRequest obj1 = new IndustryClothYcTortSaveRequest.TortRecordSaveRequest();
obj1.setTaobaoApplyId("TYC10000001");
obj1.setOuterApplyId("YC10000001");
List<IndustryClothYcTortSaveRequest.TortRecord> list3 = new ArrayList<IndustryClothYcTortSaveRequest.TortRecord>();
IndustryClothYcTortSaveRequest.TortRecord obj4 = new IndustryClothYcTortSaveRequest.TortRecord();
list3.add(obj4);
obj4.setOuterTortRecordId("xxxxxxx");
obj4.setFindDate("2026-01-01");
obj4.setTotalInspectTimes(100L);
IndustryClothYcTortSaveRequest.GoodsInfo obj6 = new IndustryClothYcTortSaveRequest.GoodsInfo();
obj6.setImgUrl("https://xxxx.com/xxx.jpg");
obj6.setName("xxxx");
obj6.setUrl("https://xxxx.com/xxx.html");
obj6.setShopName("xxxx");
obj6.setPlatformName("xxxx");
obj6.setSaleQuantity(100L);
list5.setGoodsInfo(obj6);
obj1.setTortRecords(list3);
obj1.setTpAppKey("1992829292");
obj1.setIsvId("12222");
obj1.setRequestId("12222");
obj1.setApiCode("132ss");
obj1.setSeqId("1333");
obj1.setApiSourceIp("1222");
req.setTortRecordSaveRequest(obj1);
IndustryClothYcTortSaveResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
IndustryClothYcTortSaveRequest req = new IndustryClothYcTortSaveRequest();
IndustryClothYcTortSaveRequest.TortRecordSaveRequestDomain obj1 = new IndustryClothYcTortSaveRequest.TortRecordSaveRequestDomain();
obj1.TaobaoApplyId = "TYC10000001";
obj1.OuterApplyId = "YC10000001";
List<IndustryClothYcTortSaveRequest.TortRecordDomain> list3 = new List<IndustryClothYcTortSaveRequest.TortRecordDomain>();
IndustryClothYcTortSaveRequest.TortRecordDomain obj4 = new IndustryClothYcTortSaveRequest.TortRecordDomain();
list3.Add(obj4);
obj4.OuterTortRecordId = "xxxxxxx";
obj4.FindDate = "2026-01-01";
obj4.TotalInspectTimes = 100L;
IndustryClothYcTortSaveRequest.GoodsInfoDomain obj5 = new IndustryClothYcTortSaveRequest.GoodsInfoDomain();
obj5.ImgUrl = "https://xxxx.com/xxx.jpg";
obj5.Name = "xxxx";
obj5.Url = "https://xxxx.com/xxx.html";
obj5.ShopName = "xxxx";
obj5.PlatformName = "xxxx";
obj5.SaleQuantity = 100L;
obj4.GoodsInfo= obj5;
obj1.TortRecords= list3;
obj1.TpAppKey = "1992829292";
obj1.IsvId = "12222";
obj1.RequestId = "12222";
obj1.ApiCode = "132ss";
obj1.SeqId = "1333";
obj1.ApiSourceIp = "1222";
req.TortRecordSaveRequest_ = obj1;
IndustryClothYcTortSaveResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new IndustryClothYcTortSaveRequest;
$tort_record_save_request = new TortRecordSaveRequest;
$tort_record_save_request->taobao_apply_id="TYC10000001";
$tort_record_save_request->outer_apply_id="YC10000001";
$tort_records = new TortRecord;
$tort_records->outer_tort_record_id="xxxxxxx";
$tort_records->find_date="2026-01-01";
$tort_records->total_inspect_times="100";
$goods_info = new GoodsInfo;
$goods_info->img_url="https://xxxx.com/xxx.jpg";
$goods_info->name="xxxx";
$goods_info->url="https://xxxx.com/xxx.html";
$goods_info->shop_name="xxxx";
$goods_info->platform_name="xxxx";
$goods_info->sale_quantity="100";
$tort_records->goods_info = $goods_info;
$tort_record_save_request->tort_records = $tort_records;
$tort_record_save_request->tp_app_key="1992829292";
$tort_record_save_request->isv_id="12222";
$tort_record_save_request->request_id="12222";
$tort_record_save_request->api_code="132ss";
$tort_record_save_request->seq_id="1333";
$tort_record_save_request->api_source_ip="1222";
$req->setTortRecordSaveRequest(json_encode($tort_record_save_request));
$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.industry.cloth.yc.tort.save' \
-d 'partner_id=apidoc' \
-d 'sign=B673B1B1D3BD5EF04C491602DFCB5AE0' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-04-04+13%3A19%3A35' \
-d 'v=2.0' \
-d 'tort_record_save_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.IndustryClothYcTortSaveRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.tort_record_save_request=""
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.industry.cloth.yc.tort.save");
add_param(pRequest,"tort_record_save_request","数据结构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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('taobao.industry.cloth.yc.tort.save', {
'tort_record_save_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})