TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
IndustryApplestoreRestrictionQueryRequest req = new IndustryApplestoreRestrictionQueryRequest();
IndustryApplestoreRestrictionQueryRequest.RestrictionInfoQuery obj1 = new IndustryApplestoreRestrictionQueryRequest.RestrictionInfoQuery();
obj1.setRestrictionIds("656851744680");
obj1.setRestrictionType("2");
obj1.setChannel("PC");
obj1.setStartTime(StringUtils.parseDateTime("2023-05-11 00:00:00"));
obj1.setEndTime(StringUtils.parseDateTime("2023-05-11 00:00:00"));
obj1.setBusinessType("CE_APPLE");
req.setRestrictionInfoQuery(obj1);
IndustryApplestoreRestrictionQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
IndustryApplestoreRestrictionQueryRequest req = new IndustryApplestoreRestrictionQueryRequest();
IndustryApplestoreRestrictionQueryRequest.RestrictionInfoQueryDomain obj1 = new IndustryApplestoreRestrictionQueryRequest.RestrictionInfoQueryDomain();
obj1.RestrictionIds = "656851744680";
obj1.RestrictionType = "2";
obj1.Channel = "PC";
obj1.StartTime = DateTime.Parse(2023-05-11 00:00:00");
obj1.EndTime = DateTime.Parse(2023-05-11 00:00:00");
obj1.BusinessType = "CE_APPLE";
req.RestrictionInfoQuery_ = obj1;
IndustryApplestoreRestrictionQueryResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new IndustryApplestoreRestrictionQueryRequest;
$restriction_info_query = new RestrictionInfoQuery;
$restriction_info_query->restriction_ids="656851744680";
$restriction_info_query->restriction_type="2";
$restriction_info_query->channel="PC";
$restriction_info_query->start_time="2023-05-11 00:00:00";
$restriction_info_query->end_time="2023-05-11 00:00:00";
$restriction_info_query->business_type="CE_APPLE";
$req->setRestrictionInfoQuery(json_encode($restriction_info_query));
$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.query' \
-d 'partner_id=apidoc' \
-d 'session=0efcb228-a5d5-465e-b6b1-172e2a062e14' \
-d 'sign=B758723A7061DEAA2F0211312A9F8B32' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-20+21%3A43%3A29' \
-d 'v=2.0' \
-d 'restriction_info_query=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.IndustryApplestoreRestrictionQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.restriction_info_query="数据结构示例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.query");
add_param(pRequest,"restriction_info_query","数据结构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.query', {
'restriction_info_query':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})