linux curl 微信access_token 时"appid missing hint"

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}

猜你喜欢

转载自blog.csdn.net/xiejunna/article/details/79731772