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}