订阅消息
接口说明
基本信息
| 名称 | 描述 | 
|---|---|
| HTTP URL | https://minigame.zijieapi.com/mgplatform/api/apps/subscribe_notification/developer/v1/notify | 
| HTTP Method | POST | 
| Scope | open.ttgame.mgplatform | 
请求参数
请求头
content-type必填String
固定值"application/json"
Body展开全部子属性
access_token必填String
示例:08011218462b6b4b5054626e426e50685a7554643144644449413d3d
app_idString
dataMap
 展开子属性
open_idString
pageString
tpl_idString
请求示例
curl -X POST \ -H "content-type: application/json" \ -d '{"access_token":"080112********6b6c537666514d413d3d","app_id":"tt4*********65","tpl_id":"MSG*********5237304","open_id":"vziikC*******FR9","page":"","data":{"名次": 1, "奖励": "500钻石", "领取时间": "202x-0x-xx"}}' \ https://minigame.zijieapi.com/mgplatform/api/apps/subscribe_notification/developer/v1/notify
响应参数
Body
err_noInt64
err_tipsString
响应示例
正常响应示例异常响应示例
{ "err_no": 0, "err_tips": "" }
错误码
| HTTP 状态码 | 错误码 | 错误码描述 | 排查建议 | 
|---|---|---|---|
| 200 | 0 | 成功 | |
| 200 | 1000 | 参数格式有误 | |
| 200 | 1001 | 参数内容有误 | |
| 200 | 1008 | 通知内容违规 | |
| 200 | 1009 | 推送消息能力被封禁 | |
| 200 | 1010 | 发送消息过于频繁 | |
| 200 | 2000 | 服务内部错误 | |
| 200 | 28006003 | 限流(qps上限为1000) | |
| 200 | 28014043 | 用户未订阅该模板 | 
