我在https://accounts.google.com/o/oauth2/v2/auth上请求获取授权码,但仅收到400 Oauth错误! 1。 您能否提供请求格式和参数,以使我能弄明白我在哪里出错了?
Here is request :
https://accounts.google.com/o/oauth2/v2/auth?scope=https://mail.google.com/&redirect_uri=https://www.msn.com&access_type=offline&client_id=*********.apps.googleusercontent.com&response_type=code&include_granted_scopes=true
答案 0 :(得分:0)
您确实意识到这只是您使用的同意URL。此后还会有其他电话。
这是我用来向用户索取同意书的链接。您只需更改自己的重定向uri。请记住,在这种情况下,响应将返回到重定向uri。
获取https://accounts.google.com/o/oauth2/auth?client_id= {clientid} .apps.googleusercontent.com&redirect_uri = urn:ietf:wg:oauth:2.0:oob&scope = https://www.googleapis.com/auth/analytics.readonly&response_type=code