不灭的焱

加密类型:SHA/AES/RSA下载Go
复合类型:切片(slice)、映射(map)、指针(pointer)、函数(function)、通道(channel)、接口(interface)、数组(array)、结构体(struct) Go类型+零值nil
引用类型:切片(slice)、映射(map)、指针(pointer)、函数(function)、通道(channel) Go引用

作者:AlbertWen  添加时间:2020-09-28 16:41:33  修改时间:2025-12-03 15:26:24  分类:12.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"