TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallServicecenterServicestoreUpdateservicestorecoverserviceRequest req = new TmallServicecenterServicestoreUpdateservicestorecoverserviceRequest();
req.setBizType("appliance_install");
req.setCategoryIdsAndBrandIds("[{\"categoryIds\":\"350410\",\"brandIds\":\"52916195|52913995\"},{\"categoryIds\":\"52913995|3343\",\"brandIds\":\"52913995|78071492\"}]");
req.setServiceCodes("sendAndInstall");
req.setServiceStoreCode("snabcdef123");
TmallServicecenterServicestoreUpdateservicestorecoverserviceResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallServicecenterServicestoreUpdateservicestorecoverserviceRequest req = new TmallServicecenterServicestoreUpdateservicestorecoverserviceRequest();
req.BizType = "appliance_install";
req.CategoryIdsAndBrandIds = "[{\"categoryIds\":\"350410\",\"brandIds\":\"52916195|52913995\"},{\"categoryIds\":\"52913995|3343\",\"brandIds\":\"52913995|78071492\"}]";
req.ServiceCodes = "sendAndInstall";
req.ServiceStoreCode = "snabcdef123";
TmallServicecenterServicestoreUpdateservicestorecoverserviceResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallServicecenterServicestoreUpdateservicestorecoverserviceRequest;
$req->setBizType("appliance_install");
$req->setCategoryIdsAndBrandIds("[{\"categoryIds\":\"350410\",\"brandIds\":\"52916195|52913995\"},{\"categoryIds\":\"52913995|3343\",\"brandIds\":\"52913995|78071492\"}]");
$req->setServiceCodes("sendAndInstall");
$req->setServiceStoreCode("snabcdef123");
$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.servicecenter.servicestore.updateservicestorecoverservice' \
-d 'partner_id=apidoc' \
-d 'session=aaba2575-af06-4425-9f76-a5461b4f49a7' \
-d 'sign=81C840FF366CCF7622CF474F6E062500' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-29+07%3A50%3A44' \
-d 'v=2.0' \
-d 'biz_type=appliance_install' \
-d 'category_ids_and_brand_ids=%7B%22categoryIds%22%3A%22350410%22%2C%22brandIds%22%3A%2252916195%7C52913995%22%7D%2C%7B%22categoryIds%22%3A%2252913995%7C3343%22%2C%22brandIds%22%3A%2252913995%7C78071492%22%7D' \
-d 'service_codes=sendAndInstall' \
-d 'service_store_code=snabcdef123'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallServicecenterServicestoreUpdateservicestorecoverserviceRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.biz_type="appliance_install"
req.category_ids_and_brand_ids="[{\"categoryIds\":\"350410\",\"brandIds\":\"52916195|52913995\"},{\"categoryIds\":\"52913995|3343\",\"brandIds\":\"52913995|78071492\"}]"
req.service_codes="sendAndInstall"
req.service_store_code="snabcdef123"
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.servicecenter.servicestore.updateservicestorecoverservice");
add_param(pRequest,"biz_type","appliance_install");
add_param(pRequest,"category_ids_and_brand_ids","{"categoryIds":"350410","brandIds":"52916195|52913995"},{"categoryIds":"52913995|3343","brandIds":"52913995|78071492"}");
add_param(pRequest,"service_codes","sendAndInstall");
add_param(pRequest,"service_store_code","snabcdef123");
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.servicecenter.servicestore.updateservicestorecoverservice', {
'biz_type':'appliance_install',
'category_ids_and_brand_ids':'{"categoryIds":"350410","brandIds":"52916195|52913995"},{"categoryIds":"52913995|3343","brandIds":"52913995|78071492"}',
'service_codes':'sendAndInstall',
'service_store_code':'snabcdef123'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})