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

alibaba.alsc.growth.interactive.mini.game.notice.push.send (小游戏发送push)

小游戏发送push

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
push_send_request PushSendRequest 必须 push发送请求参数
  • └ act_id
  • String
  • 必须
  • 34324241
  • 活动id
  • └ ext_params
  • String
  • 可选
  • {"name":"xxx"}
  • 扩展参数
  • └ biz_scene
  • String
  • 必须
  • IDIOM
  • 业务场景
  • └ send_client
  • String
  • 必须
  • eleme
  • 给哪个端发push
  • └ game_acc_id
  • String
  • 可选
  • adfad
  • 游戏账号id,成语场景下必填
  • └ notify_id
  • String
  • 必须
  • 322
  • 触达消息模板id
  • └ open_id
  • String
  • 可选
  • AAFh0z9sAOAaPm8T4L3O22tX
  • openId,非成语场景下必填

响应参数

名称 类型 示例值 描述
trace_id String asdfasdfadf 链路id
biz_success Boolean false 是否成功
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);
AlibabaAlscGrowthInteractiveMiniGameNoticePushSendRequest req = new AlibabaAlscGrowthInteractiveMiniGameNoticePushSendRequest();
AlibabaAlscGrowthInteractiveMiniGameNoticePushSendRequest.PushSendRequest obj1 = new AlibabaAlscGrowthInteractiveMiniGameNoticePushSendRequest.PushSendRequest();
obj1.setActId("34324241");
obj1.setExtParams("{\"name\":\"xxx\"}");
obj1.setBizScene("IDIOM");
obj1.setSendClient("eleme");
obj1.setGameAccId("adfad");
obj1.setNotifyId("322");
obj1.setOpenId("AAFh0z9sAOAaPm8T4L3O22tX");
req.setPushSendRequest(obj1);
AlibabaAlscGrowthInteractiveMiniGameNoticePushSendResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_growth_interactive_mini_game_notice_push_send_response>
    <trace_id>asdfasdfadf</trace_id>
    <biz_success>false</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_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

返回
顶部