通过 code 换取网页授权access_token和OpenId
GET
https://api.weixin.qq.com/sns/oauth2/access_token?appid=wxc9bff9d4a372c10c&secret=0220a07011e102f3b800ff1971d5b5e5&code=071CyW000UGidO1SxY000uNATs1CyW04&grant_type=authorization_code
请求参数
参数名
类型
描述
必填
appid
string
示例:wxc9bff9d4a372c10c
可选
secret
string
示例:0220a07011e102f3b800ff1971d5b5e5
可选
code
string
示例:071CyW000UGidO1SxY000uNATs1CyW04
可选
grant_type
string
示例:authorization_code
可选