订阅消息
接口说明
基本信息
名称 | 描述 |
---|---|
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 --location --request POST '/mgplatform/api/apps/subscribe_notification/developer/v1/notify' \ --header 'content-type: application/json' \ --header 'access-token: 0801121846735352506a356a6' \ --data '{"page":"an6O7o0cdX","data":{"NhsCminsKF":"MYHgkKoMzZ"},"app_id":"p0Gc0Q7Kb3","tpl_id":"14j8vT67Z3","open_id":"5PC4inZkrO"}' # 此示例仅为模板,请修改为更加符合业务规则的调用示例,方便开发者查看
响应参数
Body
err_noInt64
err_tipsString
响应示例
{ "err_no": 5186321828143358000, "err_tips": "AJskUgZjzA" }
错误码
HTTP 状态码 | 错误码 | 错误码描述 | 排查建议 |
---|---|---|---|
200 | 0 | 成功 | |
200 | 1000 | 参数格式有误 | |
200 | 1001 | 参数内容有误 | |
200 | 1008 | 通知内容违规 | |
200 | 1009 | 推送消息能力被封禁 | |
200 | 1010 | 发送消息过于频繁 | |
200 | 2000 | 服务内部错误 | |
200 | 28006003 | 限流(qps上限为1000) | |
200 | 28014043 | 用户未订阅该模板 |