TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallNrItemStoreitemSynccreateRequest req = new TmallNrItemStoreitemSynccreateRequest();
req.setItemId(100L);
req.setBizType(100L);
req.setStoreIds("1,2");
TmallNrItemStoreitemSynccreateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallNrItemStoreitemSynccreateRequest req = new TmallNrItemStoreitemSynccreateRequest();
req.ItemId = 100L;
req.BizType = 100L;
req.StoreIds = "1,2";
TmallNrItemStoreitemSynccreateResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallNrItemStoreitemSynccreateRequest;
$req->setItemId("100");
$req->setBizType("100");
$req->setStoreIds("[1,2]");
$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.nr.item.storeitem.synccreate' \
-d 'partner_id=apidoc' \
-d 'session=b626a193-b22a-4cb9-a59a-18f7666fd992' \
-d 'sign=223C651897A4AD235D7A0AEF57F4D1E5' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-15+13%3A59%3A00' \
-d 'v=2.0' \
-d 'biz_type=100' \
-d 'item_id=100' \
-d 'store_ids=1%2C2'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallNrItemStoreitemSynccreateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.item_id=100
req.biz_type=100
req.store_ids="[1,2]"
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.nr.item.storeitem.synccreate");
add_param(pRequest,"item_id","100");
add_param(pRequest,"biz_type","100");
add_param(pRequest,"store_ids","1,2");
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.nr.item.storeitem.synccreate', {
'item_id':'100',
'biz_type':'100',
'store_ids':'1,2'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})