Oauth 2.0 googleapis oauth2令牌API未返回刷新令牌

Oauth 2.0 googleapis oauth2令牌API未返回刷新令牌,oauth-2.0,spreadsheet,access-token,google-apis-explorer,refresh-token,Oauth 2.0,Spreadsheet,Access Token,Google Apis Explorer,Refresh Token,我正在尝试生成一个访问令牌和刷新令牌来访问google电子表格API。我使用了API&grant\u type=authorization\u code&redirect\u uri=&client\u id=&client\u secret=&approval\u prompt=force 此API在响应中仅提供“访问令牌”、“类型”和“过期令牌”,而不提供“刷新令牌”。我们如何刷新访问令牌?我尝试使用需要“刷新令牌”作为查询参数的API。我最初没有找到任何刷新令牌,因此无法访问此API。有人

我正在尝试生成一个访问令牌和刷新令牌来访问google电子表格API。我使用了API&grant\u type=authorization\u code&redirect\u uri=&client\u id=&client\u secret=&approval\u prompt=force
此API在响应中仅提供“访问令牌”、“类型”和“过期令牌”,而不提供“刷新令牌”。我们如何刷新访问令牌?我尝试使用需要“刷新令牌”作为查询参数的API。我最初没有找到任何刷新令牌,因此无法访问此API。有人能描述一下为电子表格API获取刷新令牌的步骤吗?

看起来您想使用access\u type=offline


来源:

这些信息对您有用吗?