微信公众号开发"errcode":48001,"errmsg":"api unauthorized hint: [5pl2Ya0935e257!]"

问题描述:

在进行微信公众号开发时,可以正常接收用户消息,但是在调用客服接口给该用户回复消息,返回信息如下:

{"errcode":48001,"errmsg":"api unauthorized hint: [5pl2Ya0935e257!]"}

问题分析:

在微信公众平台,使用该公众号的账号进行登录,发现该公众号确实处于“未认证”状态,如下图。

微信公众号开发"errcode":48001,"errmsg":"api unauthorized hint: [5pl2Ya0935e257!]"

点击左侧菜单中的“开发”--“接口权限”,查看各个接口调用所需要的权限。

微信公众号开发"errcode":48001,"errmsg":"api unauthorized hint: [5pl2Ya0935e257!]"

解决方案:

如果想要调用客服接口,给公众号用户发送消息,就需要先对公众号进行认证。

微信公众号开发"errcode":48001,"errmsg":"api unauthorized hint: [5pl2Ya0935e257!]"