TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscGrowthInteractiveMiniGameNoticePushBatchSendRequest req = new AlibabaAlscGrowthInteractiveMiniGameNoticePushBatchSendRequest();
AlibabaAlscGrowthInteractiveMiniGameNoticePushBatchSendRequest.PushSendBatchRequest obj1 = new AlibabaAlscGrowthInteractiveMiniGameNoticePushBatchSendRequest.PushSendBatchRequest();
obj1.setActId("2312");
List<AlibabaAlscGrowthInteractiveMiniGameNoticePushBatchSendRequest.PushBatchSendMetaReq> list3 = new ArrayList<AlibabaAlscGrowthInteractiveMiniGameNoticePushBatchSendRequest.PushBatchSendMetaReq>();
AlibabaAlscGrowthInteractiveMiniGameNoticePushBatchSendRequest.PushBatchSendMetaReq obj4 = new AlibabaAlscGrowthInteractiveMiniGameNoticePushBatchSendRequest.PushBatchSendMetaReq();
list3.add(obj4);
obj4.setGameAccId("sadfaf");
obj4.setTemplateArgs("{\"name\":\"sdaf\"}");
obj4.setOpenId("AAFh0z9sAOAaPm8T4L3O22tX");
obj1.setBatchSendMetaReqs(list3);
obj1.setBizScene("IDIOM");
obj1.setSendClient("eleme");
obj1.setNotifyId("12312");
req.setPushSendBatchRequest(obj1);
AlibabaAlscGrowthInteractiveMiniGameNoticePushBatchSendResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlscGrowthInteractiveMiniGameNoticePushBatchSendRequest req = new AlibabaAlscGrowthInteractiveMiniGameNoticePushBatchSendRequest();
AlibabaAlscGrowthInteractiveMiniGameNoticePushBatchSendRequest.PushSendBatchRequestDomain obj1 = new AlibabaAlscGrowthInteractiveMiniGameNoticePushBatchSendRequest.PushSendBatchRequestDomain();
obj1.ActId = "2312";
List<AlibabaAlscGrowthInteractiveMiniGameNoticePushBatchSendRequest.PushBatchSendMetaReqDomain> list3 = new List<AlibabaAlscGrowthInteractiveMiniGameNoticePushBatchSendRequest.PushBatchSendMetaReqDomain>();
AlibabaAlscGrowthInteractiveMiniGameNoticePushBatchSendRequest.PushBatchSendMetaReqDomain obj4 = new AlibabaAlscGrowthInteractiveMiniGameNoticePushBatchSendRequest.PushBatchSendMetaReqDomain();
list3.Add(obj4);
obj4.GameAccId = "sadfaf";
obj4.TemplateArgs = "{\"name\":\"sdaf\"}";
obj4.OpenId = "AAFh0z9sAOAaPm8T4L3O22tX";
obj1.BatchSendMetaReqs= list3;
obj1.BizScene = "IDIOM";
obj1.SendClient = "eleme";
obj1.NotifyId = "12312";
req.PushSendBatchRequest_ = obj1;
AlibabaAlscGrowthInteractiveMiniGameNoticePushBatchSendResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlscGrowthInteractiveMiniGameNoticePushBatchSendRequest;
$push_send_batch_request = new PushSendBatchRequest;
$push_send_batch_request->act_id="2312";
$batch_send_meta_reqs = new PushBatchSendMetaReq;
$batch_send_meta_reqs->game_acc_id="sadfaf";
$batch_send_meta_reqs->template_args="{\"name\":\"sdaf\"}";
$batch_send_meta_reqs->open_id="AAFh0z9sAOAaPm8T4L3O22tX";
$push_send_batch_request->batch_send_meta_reqs = $batch_send_meta_reqs;
$push_send_batch_request->biz_scene="IDIOM";
$push_send_batch_request->send_client="eleme";
$push_send_batch_request->notify_id="12312";
$req->setPushSendBatchRequest(json_encode($push_send_batch_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.notice.push.batch.send' \
-d 'partner_id=apidoc' \
-d 'sign=15EA747AA8590A497F518EFCE28A884D' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-20+04%3A19%3A42' \
-d 'v=2.0' \
-d 'push_send_batch_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlscGrowthInteractiveMiniGameNoticePushBatchSendRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.push_send_batch_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.notice.push.batch.send");
add_param(pRequest,"push_send_batch_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.notice.push.batch.send', {
'push_send_batch_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})