TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIhomeCtomStoreStatusSyncRequest req = new AlibabaIhomeCtomStoreStatusSyncRequest();
req.setTraceId("0b0924ad15553853579212875d");
req.setSupplierShipTime(1555464525L);
req.setMaterialName("木板");
req.setBatchSn("2201");
req.setSupplierId("11");
req.setStateChangeTime(1555464525L);
req.setMaterialId("123");
req.setState("code");
AlibabaIhomeCtomStoreStatusSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIhomeCtomStoreStatusSyncRequest req = new AlibabaIhomeCtomStoreStatusSyncRequest();
req.TraceId = "0b0924ad15553853579212875d";
req.SupplierShipTime = 1555464525L;
req.MaterialName = "木板";
req.BatchSn = "2201";
req.SupplierId = "11";
req.StateChangeTime = 1555464525L;
req.MaterialId = "123";
req.State = "code";
AlibabaIhomeCtomStoreStatusSyncResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIhomeCtomStoreStatusSyncRequest;
$req->setTraceId("0b0924ad15553853579212875d");
$req->setSupplierShipTime("1555464525");
$req->setMaterialName("木板");
$req->setBatchSn("2201");
$req->setSupplierId("11");
$req->setStateChangeTime("1555464525");
$req->setMaterialId("123");
$req->setState("code");
$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=alibaba.ihome.ctom.store.status.sync' \
-d 'partner_id=apidoc' \
-d 'sign=AB114757C83C6143D2B415511CDE2FF8' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-07-11+09%3A03%3A48' \
-d 'v=2.0' \
-d 'batch_sn=2201' \
-d 'material_id=123' \
-d 'material_name=%E6%9C%A8%E6%9D%BF' \
-d 'state=code' \
-d 'state_change_time=1555464525' \
-d 'supplier_id=11' \
-d 'supplier_ship_time=1555464525' \
-d 'trace_id=0b0924ad15553853579212875d'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIhomeCtomStoreStatusSyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.trace_id="0b0924ad15553853579212875d"
req.supplier_ship_time=1555464525
req.material_name="木板"
req.batch_sn="2201"
req.supplier_id="11"
req.state_change_time=1555464525
req.material_id="123"
req.state="code"
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,"alibaba.ihome.ctom.store.status.sync");
add_param(pRequest,"trace_id","0b0924ad15553853579212875d");
add_param(pRequest,"supplier_ship_time","1555464525");
add_param(pRequest,"material_name","木板");
add_param(pRequest,"batch_sn","2201");
add_param(pRequest,"supplier_id","11");
add_param(pRequest,"state_change_time","1555464525");
add_param(pRequest,"material_id","123");
add_param(pRequest,"state","code");
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('alibaba.ihome.ctom.store.status.sync', {
'trace_id':'0b0924ad15553853579212875d',
'supplier_ship_time':'1555464525',
'material_name':'木板',
'batch_sn':'2201',
'supplier_id':'11',
'state_change_time':'1555464525',
'material_id':'123',
'state':'code'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})