alibaba.idle.open.game.recall.push.send (闲鱼小游戏召回Push发送)

游戏CP向指定用户实时发送模板化召回Push消息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
mini_game_recall_push_request MiniGameRecallPushRequest 必须 游戏召回Push发送请求
  • └ request_id
  • String
  • 必须
  • recall_push_20260812_0001
  • 请求幂等号,同一appkey下7天内唯一,长度1~64
  • └ open_uid
  • String
  • 必须
  • AABBCC112233
  • 目标闲鱼用户openUid
  • └ template_code
  • String
  • 必须
  • GAME_STAMINA_RECOVERY_REMINDER
  • 消息模板编码,仅支持平台已配置模板
  • └ params
  • String
  • 必须
  • { "rewardName": "金币", "num": "10000" }
  • 模板参数键值对,键集合和值必须命中模板白名单

响应参数

名称 类型 示例值 描述
api_msg String 当日发送次数已达上限 错误信息
api_code String RECALL_PUSH_DAILY_LIMIT_EXCEEDED 错误码
data Data 召回Push受理结果
  • └ accepted_time
  • Number
  • 1786500000000
  • 受理时间,毫秒时间戳
  • └ request_id
  • String
  • recall_push_20260812_0001
  • 请求幂等号
  • └ status
  • String
  • ACCEPTED
  • 受理状态:ACCEPTED、REJECTED或UNKNOWN
api_success Boolean true 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleOpenGameRecallPushSendRequest req = new AlibabaIdleOpenGameRecallPushSendRequest();
AlibabaIdleOpenGameRecallPushSendRequest.MiniGameRecallPushRequest obj1 = new AlibabaIdleOpenGameRecallPushSendRequest.MiniGameRecallPushRequest();
obj1.setRequestId("recall_push_20260812_0001");
obj1.setOpenUid("AABBCC112233");
obj1.setTemplateCode("GAME_STAMINA_RECOVERY_REMINDER");
obj1.setParams("{   \"rewardName\": \"金币\",   \"num\": \"10000\" }");
req.setMiniGameRecallPushRequest(obj1);
AlibabaIdleOpenGameRecallPushSendResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_open_game_recall_push_send_response>
    <api_msg>当日发送次数已达上限</api_msg>
    <api_code>RECALL_PUSH_DAILY_LIMIT_EXCEEDED</api_code>
    <data>
        <accepted_time>1786500000000</accepted_time>
        <request_id>recall_push_20260812_0001</request_id>
        <status>ACCEPTED</status>
    </data>
    <api_success>true</api_success>
</alibaba_idle_open_game_recall_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

返回
顶部