TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallItemAppleShiptimeUpdateShadowRequest req = new TmallItemAppleShiptimeUpdateShadowRequest();
req.setItemId(123456789L);
req.setShipTime("7");
req.setCommitCode("1");
TmallItemAppleShiptimeUpdateShadowRequest.ShadowUpdateAppleSkuShipTime obj1 = new TmallItemAppleShiptimeUpdateShadowRequest.ShadowUpdateAppleSkuShipTime();
obj1.setShipTime("7");
obj1.setOuterId("123456");
obj1.setCommitCode("1");
obj1.setSkuId(123456L);
obj1.setProperties("1627207:28326;1630696:3266779");
req.setSkuShipTimes(obj1);
TmallItemAppleShiptimeUpdateShadowRequest.ShadowUpdateItemShipTimeOption obj2 = new TmallItemAppleShiptimeUpdateShadowRequest.ShadowUpdateItemShipTimeOption();
obj2.setShipTimeType(1L);
obj2.setUpdateType(0L);
req.setOption(obj2);
TmallItemAppleShiptimeUpdateShadowResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallItemAppleShiptimeUpdateShadowRequest req = new TmallItemAppleShiptimeUpdateShadowRequest();
req.ItemId = 123456789L;
req.ShipTime = "7";
req.CommitCode = "1";
TmallItemAppleShiptimeUpdateShadowRequest.ShadowUpdateAppleSkuShipTimeDomain obj1 = new TmallItemAppleShiptimeUpdateShadowRequest.ShadowUpdateAppleSkuShipTimeDomain();
obj1.ShipTime = "7";
obj1.OuterId = "123456";
obj1.CommitCode = "1";
obj1.SkuId = 123456L;
obj1.Properties = "1627207:28326;1630696:3266779";
req.SkuShipTimes_ = obj1;
TmallItemAppleShiptimeUpdateShadowRequest.ShadowUpdateItemShipTimeOptionDomain obj2 = new TmallItemAppleShiptimeUpdateShadowRequest.ShadowUpdateItemShipTimeOptionDomain();
obj2.ShipTimeType = 1L;
obj2.UpdateType = 0L;
req.Option_ = obj2;
TmallItemAppleShiptimeUpdateShadowResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallItemAppleShiptimeUpdateShadowRequest;
$req->setItemId("123456789");
$req->setShipTime("7");
$req->setCommitCode("1");
$sku_ship_times = new ShadowUpdateAppleSkuShipTime;
$sku_ship_times->ship_time="7";
$sku_ship_times->outer_id="123456";
$sku_ship_times->commit_code="1";
$sku_ship_times->sku_id="123456";
$sku_ship_times->properties="1627207:28326;1630696:3266779";
$req->setSkuShipTimes(json_encode($sku_ship_times));
$option = new ShadowUpdateItemShipTimeOption;
$option->ship_time_type="1";
$option->update_type="0";
$req->setOption(json_encode($option));
$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.item.apple.shiptime.update.shadow' \
-d 'partner_id=apidoc' \
-d 'session=0eadcbf6-d33e-43e5-bd1f-e12fce752e67' \
-d 'sign=3C49ED7D90D5D943B5439896E984E2C1' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+15%3A52%3A04' \
-d 'v=2.0' \
-d 'commit_code=1' \
-d 'item_id=123456789' \
-d 'option=null' \
-d 'ship_time=7' \
-d 'sku_ship_times=7'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallItemAppleShiptimeUpdateShadowRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.item_id=123456789
req.ship_time="7"
req.commit_code="1"
req.sku_ship_times="7"
req.option="数据结构示例JSON格式"
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.item.apple.shiptime.update.shadow");
add_param(pRequest,"item_id","123456789");
add_param(pRequest,"ship_time","7");
add_param(pRequest,"commit_code","1");
add_param(pRequest,"sku_ship_times","数据结构JSON示例");
add_param(pRequest,"option","数据结构JSON示例");
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.item.apple.shiptime.update.shadow', {
'item_id':'123456789',
'ship_time':'7',
'commit_code':'1',
'sku_ship_times':'数据结构JSON示例',
'option':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})