我使用VB.NET来访问OAuth2 . 提出离线访问请求,看起来类似:

https://accounts.google.com/o/oauth2/auth? scope = https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile&state =%2Fprofile&redirect_uri = https%3A%2F%2Foauth2- login-demo.appspot.com%2Fcode&response_type = code&client_id = 812741506391.apps.googleusercontent.com&access_type = offline

我花了好几个小时 . 我怎么能获得Refresh Token?我知道我应该请求获取包含授权代码值的 grant_type ,因此我将拥有访问和刷新令牌,但我如何以编程方式解决它?