注册谷歌账号 去创建 一个app设置的 url 访问 一定要和第二步中的http://www.newplat.com/google/googleLogin 一致
demo : https://developers.google.com/oauthplayground
文档 :https://developers.google.com/accounts/docs/OAuth2Login
修改应用:https://cloud.google.com/console/project/xxxxxxxxxx/apiui/credential
scope=https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
1. https://accounts.google.com/o/oauth2/auth?scope=https://www.googleapis.com/auth/userinfo.email&response_type=code&redirect_uri=http://www.newplat.com/google/googleLogin&client_id=xxxxxxxxxxx.apps.googleusercontent.com
2.http://www.newplat.com/google/googleLogin?code=4/eYbEPfgh5yY3aTGtWPuaYQrtO_GG.0sy18st9VmcfXE-sT2ZLcbSvGvSHhwI
3.post https://accounts.google.com/o/oauth2/token
code=4%2F6VO4EljtH_rFmbhcJZdZXF