不灭的焱

革命尚未成功,同志仍须努力下载JDK17

作者:Albert.Wen  添加时间:2020-09-28 16:41:33  修改时间:2024-04-26 07:16:56  分类:PHP库/系统/微信  编辑
curl https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=你的appid&secret=你的appsecret
[1] 7282
[2] 7283
{"errcode":41002,"errmsg":"appid missing hint: [e36kwa07053064]"}

经过各种尝试,url加上引号可以解决:

curl  'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=你的appid&secret=你的appsecret'
{"access_token":"这里省略","expires_in":7200}

 

 

参考:

生成小程序二维码报错:{"errcode":41002,"errmsg":"appid missing hint: [F45W7a05900001]"}

linux curl 微信access_token 时"appid missing hint"