我正在尝试refresh an access token (offline access)我将此请求称为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 Not Found
。我的Google API调用有问题吗?我已经设置了access_type=offline
。
我正在尝试刷新访问令牌(离线访问),我已将此POST请求称为https://www.googleapis.com/oauth2/v4/token?refresh_token = xxx&client_id = xxx.apps.googleusercontent.com&...] >
我面临类似的问题,但是我的代码在scala中。这是我在做什么。但是,当我尝试使用POSTMAN时,它绝对可以正常工作。您能看到我做错了吗?
案例类凭据(作用域:字符串,//="/consent.create /consent.read /library.read“grant_type:字符串// =“ client_credentials”)