首页 文章

googleapis oauth2令牌API不返回refresh_token

提问于
浏览
0

我正在尝试生成access_token和refresh_token来访问google电子表格API . 我使用了API https://www.googleapis.com/oauth2/v3/token?code=&grant_type = authorization_code&redirect_uri =&client_id =&client_secret =&approval_prompt = force此API在响应中仅提供"access_token","type"和"expires_in"并且不提供"refresh_token"我们如何刷新访问令牌?我尝试使用需要"refresh_token"的API https://accounts.google.com/o/oauth2/token作为查询参数 . 我最初没有找到任何refresh_token,因此无法点击此API . 有人可以描述为Spreadsheets API获取refresh_token的步骤吗?

1 回答

相关问题