TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscGrowthInteractiveMiniGameIntegralGrantRequest req = new AlibabaAlscGrowthInteractiveMiniGameIntegralGrantRequest();
AlibabaAlscGrowthInteractiveMiniGameIntegralGrantRequest.MiniGameGrantIntegralRequest obj1 = new AlibabaAlscGrowthInteractiveMiniGameIntegralGrantRequest.MiniGameGrantIntegralRequest();
obj1.setAmount(10L);
obj1.setActId("20220721153243098165495747");
obj1.setBizScene("IDIOM");
obj1.setGameAccId("23432");
obj1.setCollectionIds(""20220721153243102940224249"");
obj1.setRequestId("adfafadfa");
obj1.setPropertyId("1261");
obj1.setOpenId("AAFh0z9sAOAaPm8T4L3O22tX");
obj1.setExtParams("{\"bizName\":\"游戏名称用于乐园币明细展示,中文游戏名称\",\"gameStage\":\"什么场景下发放的乐园币(具体参考描述中链接的文档)\",\"gameOperateName\":\"什么场景发放乐园币\",\"gameTaskId\":\"和任务相关的,给任务id\",\"ua\":\"h5从奇门dispatch透传参数中取,小程序从header取\",\"wua\":\"h5从奇门dispatch透传参数中取,小程序从header取\",\"x-mini-wua\":\"h5从奇门dispatch透传参数中取,小程序从header取\",\"x-umt\":\"h5从奇门dispatch透传参数中取,小程序从header取\"}");
req.setMiniGameGrantIntegralRequest(obj1);
AlibabaAlscGrowthInteractiveMiniGameIntegralGrantResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlscGrowthInteractiveMiniGameIntegralGrantRequest req = new AlibabaAlscGrowthInteractiveMiniGameIntegralGrantRequest();
AlibabaAlscGrowthInteractiveMiniGameIntegralGrantRequest.MiniGameGrantIntegralRequestDomain obj1 = new AlibabaAlscGrowthInteractiveMiniGameIntegralGrantRequest.MiniGameGrantIntegralRequestDomain();
obj1.Amount = 10L;
obj1.ActId = "20220721153243098165495747";
obj1.BizScene = "IDIOM";
obj1.GameAccId = "23432";
obj1.CollectionIds = ""20220721153243102940224249"";
obj1.RequestId = "adfafadfa";
obj1.PropertyId = "1261";
obj1.OpenId = "AAFh0z9sAOAaPm8T4L3O22tX";
obj1.ExtParams = "{\"bizName\":\"游戏名称用于乐园币明细展示,中文游戏名称\",\"gameStage\":\"什么场景下发放的乐园币(具体参考描述中链接的文档)\",\"gameOperateName\":\"什么场景发放乐园币\",\"gameTaskId\":\"和任务相关的,给任务id\",\"ua\":\"h5从奇门dispatch透传参数中取,小程序从header取\",\"wua\":\"h5从奇门dispatch透传参数中取,小程序从header取\",\"x-mini-wua\":\"h5从奇门dispatch透传参数中取,小程序从header取\",\"x-umt\":\"h5从奇门dispatch透传参数中取,小程序从header取\"}";
req.MiniGameGrantIntegralRequest_ = obj1;
AlibabaAlscGrowthInteractiveMiniGameIntegralGrantResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlscGrowthInteractiveMiniGameIntegralGrantRequest;
$mini_game_grant_integral_request = new MiniGameGrantIntegralRequest;
$mini_game_grant_integral_request->amount="10";
$mini_game_grant_integral_request->act_id="20220721153243098165495747";
$mini_game_grant_integral_request->biz_scene="IDIOM";
$mini_game_grant_integral_request->game_acc_id="23432";
$mini_game_grant_integral_request->collection_ids="[\"20220721153243102940224249\"]";
$mini_game_grant_integral_request->request_id="adfafadfa";
$mini_game_grant_integral_request->property_id="1261";
$mini_game_grant_integral_request->open_id="AAFh0z9sAOAaPm8T4L3O22tX";
$mini_game_grant_integral_request->ext_params="{\"bizName\":\"游戏名称用于乐园币明细展示,中文游戏名称\",\"gameStage\":\"什么场景下发放的乐园币(具体参考描述中链接的文档)\",\"gameOperateName\":\"什么场景发放乐园币\",\"gameTaskId\":\"和任务相关的,给任务id\",\"ua\":\"h5从奇门dispatch透传参数中取,小程序从header取\",\"wua\":\"h5从奇门dispatch透传参数中取,小程序从header取\",\"x-mini-wua\":\"h5从奇门dispatch透传参数中取,小程序从header取\",\"x-umt\":\"h5从奇门dispatch透传参数中取,小程序从header取\"}";
$req->setMiniGameGrantIntegralRequest(json_encode($mini_game_grant_integral_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.integral.grant' \
-d 'partner_id=apidoc' \
-d 'sign=8C41FF864016DD843090B0C6FBB64FB3' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-19+21%3A56%3A31' \
-d 'v=2.0' \
-d 'mini_game_grant_integral_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlscGrowthInteractiveMiniGameIntegralGrantRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.mini_game_grant_integral_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.integral.grant");
add_param(pRequest,"mini_game_grant_integral_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.integral.grant', {
'mini_game_grant_integral_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})