TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
IndustryApplestoreRestrictionDeleteRequest req = new IndustryApplestoreRestrictionDeleteRequest();
IndustryApplestoreRestrictionDeleteRequest.RestrictionPlanBatchDelete obj1 = new IndustryApplestoreRestrictionDeleteRequest.RestrictionPlanBatchDelete();
obj1.setChannel("PC");
List<IndustryApplestoreRestrictionDeleteRequest.RestrictionPlanDelete> list3 = new ArrayList<IndustryApplestoreRestrictionDeleteRequest.RestrictionPlanDelete>();
IndustryApplestoreRestrictionDeleteRequest.RestrictionPlanDelete obj4 = new IndustryApplestoreRestrictionDeleteRequest.RestrictionPlanDelete();
list3.add(obj4);
obj4.setRestrictionIds("656851744680");
obj4.setPlanItemId("586");
obj4.setChannel("PC");
obj4.setBusinessType("CE_APPLE");
obj1.setList(list3);
obj1.setBusinessType("CE_APPLE");
req.setRestrictionPlanBatchDelete(obj1);
IndustryApplestoreRestrictionDeleteResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
IndustryApplestoreRestrictionDeleteRequest req = new IndustryApplestoreRestrictionDeleteRequest();
IndustryApplestoreRestrictionDeleteRequest.RestrictionPlanBatchDeleteDomain obj1 = new IndustryApplestoreRestrictionDeleteRequest.RestrictionPlanBatchDeleteDomain();
obj1.Channel = "PC";
List<IndustryApplestoreRestrictionDeleteRequest.RestrictionPlanDeleteDomain> list3 = new List<IndustryApplestoreRestrictionDeleteRequest.RestrictionPlanDeleteDomain>();
IndustryApplestoreRestrictionDeleteRequest.RestrictionPlanDeleteDomain obj4 = new IndustryApplestoreRestrictionDeleteRequest.RestrictionPlanDeleteDomain();
list3.Add(obj4);
obj4.RestrictionIds = "656851744680";
obj4.PlanItemId = "586";
obj4.Channel = "PC";
obj4.BusinessType = "CE_APPLE";
obj1.List= list3;
obj1.BusinessType = "CE_APPLE";
req.RestrictionPlanBatchDelete_ = obj1;
IndustryApplestoreRestrictionDeleteResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new IndustryApplestoreRestrictionDeleteRequest;
$restriction_plan_batch_delete = new RestrictionPlanBatchDelete;
$restriction_plan_batch_delete->channel="PC";
$list = new RestrictionPlanDelete;
$list->restriction_ids="656851744680";
$list->plan_item_id="586";
$list->channel="PC";
$list->business_type="CE_APPLE";
$restriction_plan_batch_delete->list = $list;
$restriction_plan_batch_delete->business_type="CE_APPLE";
$req->setRestrictionPlanBatchDelete(json_encode($restriction_plan_batch_delete));
$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=taobao.industry.applestore.restriction.delete' \
-d 'partner_id=apidoc' \
-d 'session=69f3a0d2-966a-4d7a-a6b1-12ad85ca850f' \
-d 'sign=9DCB544C7C098B21167EC19D10BD086B' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-04+20%3A46%3A34' \
-d 'v=2.0' \
-d 'restriction_plan_batch_delete=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.IndustryApplestoreRestrictionDeleteRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.restriction_plan_batch_delete="数据结构示例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,"taobao.industry.applestore.restriction.delete");
add_param(pRequest,"restriction_plan_batch_delete","数据结构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('taobao.industry.applestore.restriction.delete', {
'restriction_plan_batch_delete':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})