Oauth 2.0 如何在不重定向的情况下获取google api授权代码

Oauth 2.0 如何在不重定向的情况下获取google api授权代码,oauth-2.0,google-api,Oauth 2.0,Google Api,我正在使用Oauth从Blogger下载博客文章。流程的第一步是向发送请求 https://accounts.google.com/o/oauth2/v2/auth?redirect_uri=https%3A%2F%2Fdevelopers.google.com%2Foauthplayground&prompt=consent&response_type=code&client_id=407408718192.apps.googleusercontent.com&scope=https%3A%2

我正在使用Oauth从Blogger下载博客文章。流程的第一步是向发送请求

https://accounts.google.com/o/oauth2/v2/auth?redirect_uri=https%3A%2F%2Fdevelopers.google.com%2Foauthplayground&prompt=consent&response_type=code&client_id=407408718192.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fblogger.readonly&access_type=offline

然后google将我重定向回脚本,参数中有一个访问代码

/oauthplayground/?code=4/YVFm8eTYX5ZjMmDZn5g3joSm2s7NLg27kPU2fZPwXtE
一旦用户通过其google帐户授予访问权限,是否有其他方法可以在不重定向的情况下获取此代码?例如,返回JSON对象的请求