TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscGrowthInteractiveMiniGameIndexQueryRequest req = new AlibabaAlscGrowthInteractiveMiniGameIndexQueryRequest();
AlibabaAlscGrowthInteractiveMiniGameIndexQueryRequest.MiniGameIndexRequest obj1 = new AlibabaAlscGrowthInteractiveMiniGameIndexQueryRequest.MiniGameIndexRequest();
obj1.setActId("1341341");
obj1.setBizScene("IDIOM");
obj1.setGameAccId("21341");
obj1.setCollectionIds(""12324"");
obj1.setOpenId("AAFh0z9sAOAaPm8T4L3O22tX");
req.setMiniGameIndexRequest(obj1);
AlibabaAlscGrowthInteractiveMiniGameIndexQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlscGrowthInteractiveMiniGameIndexQueryRequest req = new AlibabaAlscGrowthInteractiveMiniGameIndexQueryRequest();
AlibabaAlscGrowthInteractiveMiniGameIndexQueryRequest.MiniGameIndexRequestDomain obj1 = new AlibabaAlscGrowthInteractiveMiniGameIndexQueryRequest.MiniGameIndexRequestDomain();
obj1.ActId = "1341341";
obj1.BizScene = "IDIOM";
obj1.GameAccId = "21341";
obj1.CollectionIds = ""12324"";
obj1.OpenId = "AAFh0z9sAOAaPm8T4L3O22tX";
req.MiniGameIndexRequest_ = obj1;
AlibabaAlscGrowthInteractiveMiniGameIndexQueryResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlscGrowthInteractiveMiniGameIndexQueryRequest;
$mini_game_index_request = new MiniGameIndexRequest;
$mini_game_index_request->act_id="1341341";
$mini_game_index_request->biz_scene="IDIOM";
$mini_game_index_request->game_acc_id="21341";
$mini_game_index_request->collection_ids="[\"12324\"]";
$mini_game_index_request->open_id="AAFh0z9sAOAaPm8T4L3O22tX";
$req->setMiniGameIndexRequest(json_encode($mini_game_index_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.mini.game.index.query' \
-d 'partner_id=apidoc' \
-d 'sign=C014DE261C72A41A47D772627B776C0B' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-19+22%3A19%3A26' \
-d 'v=2.0' \
-d 'mini_game_index_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlscGrowthInteractiveMiniGameIndexQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.mini_game_index_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.mini.game.index.query");
add_param(pRequest,"mini_game_index_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.mini.game.index.query', {
'mini_game_index_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})