公众号模板消息推送,出现的错误48001怎么处理?
发布于 8 年前 作者 huangxiulan 8092 次浏览 来自 问答

接口是:https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token=access_token

参数信息:

{
    "touser":"open_id",
    "mp_template_msg":{
        "appid":"公众号appid",
        "template_id":"U59TL-5993SHJ_qcatSeKzDraZoaP0QNKolqyiiTa0Y",
        "url":"http://weixin.qq.com/download",
        "miniprogram":{
            "appid":"小程序appid",
            "pagepath":"index?foo=bar"
        },
        "data":{
            "first":{
                "value":"恭喜你购买成功!",
                "color":"#173177"
            },
            "keyword1":{
                "value":"巧克力",
                "color":"#173177"
            },
            "keyword2":{
                "value":"39.8元",
                "color":"#173177"
            },
            "keyword3":{
                "value":"2014年9月22日",
                "color":"#173177"
            },
            "remark":{
                "value":"欢迎再次购买!",
                "color":"#173177"
            }
        }
    }
}

报错信息为:

{
    "errcode": 48001,
    "errmsg": "api unauthorized hints: [qGHFOZ3Me-paaaHa!]"
}
1 回复

没有接口权限

回到顶部