TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscGrowthInteractiveFanCompetitionSchoolProgressQueryRequest req = new AlibabaAlscGrowthInteractiveFanCompetitionSchoolProgressQueryRequest();
AlibabaAlscGrowthInteractiveFanCompetitionSchoolProgressQueryRequest.SchoolCompetitionBatchQueryRequest obj1 = new AlibabaAlscGrowthInteractiveFanCompetitionSchoolProgressQueryRequest.SchoolCompetitionBatchQueryRequest();
obj1.setCompetitionId("20231010172057844351252671");
obj1.setActId("20230427160535679185112174");
obj1.setCompetitionCollectionId("20230508173536855939262150");
List<AlibabaAlscGrowthInteractiveFanCompetitionSchoolProgressQueryRequest.UserMetaReq> list3 = new ArrayList<AlibabaAlscGrowthInteractiveFanCompetitionSchoolProgressQueryRequest.UserMetaReq>();
AlibabaAlscGrowthInteractiveFanCompetitionSchoolProgressQueryRequest.UserMetaReq obj4 = new AlibabaAlscGrowthInteractiveFanCompetitionSchoolProgressQueryRequest.UserMetaReq();
list3.add(obj4);
obj4.setOpenId("AAEvVKOdAOIduo9TH9jTFFN3");
obj1.setOpenIdList(list3);
req.setCompetitionDetailQueryRequest(obj1);
AlibabaAlscGrowthInteractiveFanCompetitionSchoolProgressQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlscGrowthInteractiveFanCompetitionSchoolProgressQueryRequest req = new AlibabaAlscGrowthInteractiveFanCompetitionSchoolProgressQueryRequest();
AlibabaAlscGrowthInteractiveFanCompetitionSchoolProgressQueryRequest.SchoolCompetitionBatchQueryRequestDomain obj1 = new AlibabaAlscGrowthInteractiveFanCompetitionSchoolProgressQueryRequest.SchoolCompetitionBatchQueryRequestDomain();
obj1.CompetitionId = "20231010172057844351252671";
obj1.ActId = "20230427160535679185112174";
obj1.CompetitionCollectionId = "20230508173536855939262150";
List<AlibabaAlscGrowthInteractiveFanCompetitionSchoolProgressQueryRequest.UserMetaReqDomain> list3 = new List<AlibabaAlscGrowthInteractiveFanCompetitionSchoolProgressQueryRequest.UserMetaReqDomain>();
AlibabaAlscGrowthInteractiveFanCompetitionSchoolProgressQueryRequest.UserMetaReqDomain obj4 = new AlibabaAlscGrowthInteractiveFanCompetitionSchoolProgressQueryRequest.UserMetaReqDomain();
list3.Add(obj4);
obj4.OpenId = "AAEvVKOdAOIduo9TH9jTFFN3";
obj1.OpenIdList= list3;
req.CompetitionDetailQueryRequest_ = obj1;
AlibabaAlscGrowthInteractiveFanCompetitionSchoolProgressQueryResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlscGrowthInteractiveFanCompetitionSchoolProgressQueryRequest;
$competition_detail_query_request = new SchoolCompetitionBatchQueryRequest;
$competition_detail_query_request->competition_id="20231010172057844351252671";
$competition_detail_query_request->act_id="20230427160535679185112174";
$competition_detail_query_request->competition_collection_id="20230508173536855939262150";
$open_id_list = new UserMetaReq;
$open_id_list->open_id="AAEvVKOdAOIduo9TH9jTFFN3";
$competition_detail_query_request->open_id_list = $open_id_list;
$req->setCompetitionDetailQueryRequest(json_encode($competition_detail_query_request));
$resp = $c->execute($req);
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=alibaba.alsc.growth.interactive.fan.competition.school.progress.query' \
-d 'partner_id=apidoc' \
-d 'sign=7E59CDFA3B937488258DC27BF4895FB3' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-19+14%3A39%3A40' \
-d 'v=2.0' \
-d 'competition_detail_query_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlscGrowthInteractiveFanCompetitionSchoolProgressQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.competition_detail_query_request="数据结构示例JSON格式"
try:
resp= req.getResponse()
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,"alibaba.alsc.growth.interactive.fan.competition.school.progress.query");
add_param(pRequest,"competition_detail_query_request","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,NULL);
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('alibaba.alsc.growth.interactive.fan.competition.school.progress.query', {
'competition_detail_query_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})