tip:账号和qq互连
一:应用场景
先要创建获取appid app-key
https://www.konglongpai.com/thread-805-1-1.html
其流程
1.生成授权连接,需要配置回调地址
https://graph.qq.com/oauth2.0/authorize?response_type=code&
client_id=101420900&redirect_uri=http://127.0.0.1/qqLoginCallback&
state=1234656
2.通过授权码换取assessToken
https://graph.qq.com/oauth2.0/token?grant_type=authorization_code&
client_id=101420900&client_secret=bd56a336f6ac49a65005595c2a41201a&code=F732DD04857AD75AA3AEC7A09B5
45500&redirect_uri=http://127.0.0.1/qqLoginCallback
3.使用assessToken换取openid
https://graph.qq.com/oauth2.0/me?access_token=D08A024B0AAD7DD0F279BF8D0EDC8D1A
4.使用openid和assessToken获取用户信息
https://graph.qq.com/user/get_user_info?
access_token=D08A024B0AAD7DD0F279BF8D0EDC8D1A&
oauth_consumer_key=101420900&
openid=0C4D91D8B0F80BF0C3E9D295DCA362B7