文档中心 > API类目 > 本地生活用户增长互动业务

alibaba.alsc.growth.interactive.mini.game.notice.push.batch.send (批量发送push)

批量发送push

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
push_send_batch_request PushSendBatchRequest 必须 批量发送消息请求对象
  • └ act_id
  • String
  • 必须
  • 2312
  • 活动id
  • batch_send_meta_reqs
  • PushBatchSendMetaReq []
  • 必须
  • []
  • 批量发送消息元数据请求集合
  • └ game_acc_id
  • String
  • 可选
  • sadfaf
  • 游戏账号id,成语场景下必填
  • └ template_args
  • String
  • 可选
  • {"name":"sdaf"}
  • 模板参数
  • └ open_id
  • String
  • 可选
  • AAFh0z9sAOAaPm8T4L3O22tX
  • openId,非成语场景必填
  • └ biz_scene
  • String
  • 必须
  • IDIOM
  • 业务场景
  • └ send_client
  • String
  • 必须
  • eleme
  • 发送端
  • └ notify_id
  • String
  • 必须
  • 12312
  • 消息模板id

响应参数

名称 类型 示例值 描述
trace_id String dsaf 链路id
biz_success Boolean fasle 接口是否成功
current_timestamp Number 1923123123 时间戳
biz_error_code String SYSTEM_ERROR 错误码
biz_error_msg String 系统异常 错误描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
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());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_growth_interactive_mini_game_notice_push_batch_send_response>
    <trace_id>dsaf</trace_id>
    <biz_success>fasle</biz_success>
    <current_timestamp>1923123123</current_timestamp>
    <biz_error_code>SYSTEM_ERROR</biz_error_code>
    <biz_error_msg>系统异常</biz_error_msg>
</alibaba_alsc_growth_interactive_mini_game_notice_push_batch_send_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部