Google api 未找到获取新访问令牌返回404的Google API调用

Google api 未找到获取新访问令牌返回404的Google API调用,google-api,google-oauth,Google Api,Google Oauth,我正在努力 我称之为POST请求 https://www.googleapis.com/oauth2/v4/token?refresh_token=xxx&client_id=xxx.apps.googleusercontent.com&client_secret=xxx&grant_type=refresh_token 反应应该是这样的 { "access_token":"1/fFAGRNJru1FTz70BzhT3Zg", "expires_in":3920,

我正在努力 我称之为
POST
请求

https://www.googleapis.com/oauth2/v4/token?refresh_token=xxx&client_id=xxx.apps.googleusercontent.com&client_secret=xxx&grant_type=refresh_token
反应应该是这样的

{
 "access_token":"1/fFAGRNJru1FTz70BzhT3Zg",
 "expires_in":3920,
 "token_type":"Bearer"
}
但我只得到了
404未找到
。 我的Google API调用有问题吗?
我已经设置了
access\u type=offline

我认为当可以使用refresh\u令牌、client\u id和client\u secret时,端点可以工作。虽然我不确定您尝试检索访问令牌的方法,但是作为测试,使用curl检索访问令牌如何?例如,它是
curl-xpost“https://www.googleapis.com/oauth2/v4/token?refresh_token=xxx&client_id=xxx.apps.googleusercontent.com&client_secret=xxx&grant_type=refresh_token“
在我的环境中,它可以正常工作。但如果它在你的环境下不起作用,我很抱歉。