【发布时间】:2017-11-14 22:46:18
【问题描述】:
我正在尝试生成 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。有人可以描述获取电子表格 API 的 refresh_token 的步骤吗?
【问题讨论】:
-
这些信息对您有用吗? stackoverflow.com/questions/42815450/…
标签: oauth-2.0 spreadsheet access-token google-apis-explorer refresh-token