TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallServicecenterServicestoreCreateservicestorecapacityRequest req = new TmallServicecenterServicestoreCreateservicestorecapacityRequest();
req.setBizType("appliance_install");
req.setCategoryIdsAndAreaCodesAndCapacity("[{\"categoryIds\":\"350410\",\"areaCodes\":\"330102|330103\",\"capacity\":10},{\"categoryIds\":\"52913995|3343\",\"areaCodes\":\"330103|330104\",\"capacity\":18}]");
req.setServiceCodes("sendAndInstall");
req.setServiceStoreCode("snabcdef123");
TmallServicecenterServicestoreCreateservicestorecapacityResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallServicecenterServicestoreCreateservicestorecapacityRequest req = new TmallServicecenterServicestoreCreateservicestorecapacityRequest();
req.BizType = "appliance_install";
req.CategoryIdsAndAreaCodesAndCapacity = "[{\"categoryIds\":\"350410\",\"areaCodes\":\"330102|330103\",\"capacity\":10},{\"categoryIds\":\"52913995|3343\",\"areaCodes\":\"330103|330104\",\"capacity\":18}]";
req.ServiceCodes = "sendAndInstall";
req.ServiceStoreCode = "snabcdef123";
TmallServicecenterServicestoreCreateservicestorecapacityResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallServicecenterServicestoreCreateservicestorecapacityRequest;
$req->setBizType("appliance_install");
$req->setCategoryIdsAndAreaCodesAndCapacity("[{\"categoryIds\":\"350410\",\"areaCodes\":\"330102|330103\",\"capacity\":10},{\"categoryIds\":\"52913995|3343\",\"areaCodes\":\"330103|330104\",\"capacity\":18}]");
$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.createservicestorecapacity' \
-d 'partner_id=apidoc' \
-d 'session=cc2f9c12-1f13-49c4-b415-bdc45c8adf0d' \
-d 'sign=FCC5E6147D89F1939E4CAF8E8C0DCF62' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-29+17%3A35%3A34' \
-d 'v=2.0' \
-d 'biz_type=appliance_install' \
-d 'category_ids_and_area_codes_and_capacity=%7B%22categoryIds%22%3A%22350410%22%2C%22areaCodes%22%3A%22330102%7C330103%22%2C%22capacity%22%3A10%7D%2C%7B%22categoryIds%22%3A%2252913995%7C3343%22%2C%22areaCodes%22%3A%22330103%7C330104%22%2C%22capacity%22%3A18%7D' \
-d 'service_codes=sendAndInstall' \
-d 'service_store_code=snabcdef123'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallServicecenterServicestoreCreateservicestorecapacityRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.biz_type="appliance_install"
req.category_ids_and_area_codes_and_capacity="[{\"categoryIds\":\"350410\",\"areaCodes\":\"330102|330103\",\"capacity\":10},{\"categoryIds\":\"52913995|3343\",\"areaCodes\":\"330103|330104\",\"capacity\":18}]"
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.createservicestorecapacity");
add_param(pRequest,"biz_type","appliance_install");
add_param(pRequest,"category_ids_and_area_codes_and_capacity","{"categoryIds":"350410","areaCodes":"330102|330103","capacity":10},{"categoryIds":"52913995|3343","areaCodes":"330103|330104","capacity":18}");
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.createservicestorecapacity', {
'biz_type':'appliance_install',
'category_ids_and_area_codes_and_capacity':'{"categoryIds":"350410","areaCodes":"330102|330103","capacity":10},{"categoryIds":"52913995|3343","areaCodes":"330103|330104","capacity":18}',
'service_codes':'sendAndInstall',
'service_store_code':'snabcdef123'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})