为了安全考虑,开发者请勿将access_token返回给前端,需要开发者保存在后台,所有访问企业微信api的请求由后台发起
curl --location --request GET 'http://127.0.0.1/cgi-bin/gettoken?corpid=ID&corpsecret=SECRET'{
"errcode": 0,
"errmsg": "ok",
"access_token": "accesstoken000001",
"expires_in": 7200
}