curl --location --request GET 'https://api.weixin.qq.com/cgi-bin/template/get_all_private_template?access_token=73_3McIeBbqOqzn7M6OLx4VAHVE1Thjx3OgQ1mv7iW5W28puUyEVAhJyI277EurQSct2zWeKStvlHnTW5AUn02nU9Ib17ejuv11DgwuLT0LLhzdqfbcMMRckRZeNWIXOTfADAJAF' \
报文返回:
{
"errcode": 48001,
"errmsg": "api unauthorized rid: 6537810d-364fc4c4-52b1e252"
}
你好,用错token了,1、调用的是”/cgi-bin/template/get_all_private_template“接口https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Template_Message_Interface.html#%E8%8E%B7%E5%BE%97%E6%A8%A1%E6%9D%BFID。
2、如需代商家调用接口请使用authorizer_access_token,详情查看文档说明https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/getting_started/how_to_call_api.html
后续遇到此类问题可参考https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/troubleshooting/authorization_troubleshooting.html自助排查