我尝试使用refresh_token来获取sony的生活日志api,但是它返回了500错误。我已将请求发送至https://platform.lifelog.sonymobile.com/oauth/2/refresh_token
我的要求是:
POST /oauth/2/refresh_token HTTP/1.1
Host: platform.lifelog.sonymobile.com
Cache-Control: no-cache
Content-Type: application/x-www-form-urlencoded
refresh_token=[MY_REFRESH_TOKEN]&grant_type=refresh_token&client_id=[MY_CLIENT_ID]&client_secret=[MY_CLIENT_SECRET]
回复是:
{
"fault": {
"faultstring": "Execution of ServiceCallout CheckRefreshTokenStatus failed. Reason: ResponseCode 500 is treated as error",
"detail": {
"errorcode": "steps.servicecallout.ExecutionFailed"
}
}
}
我对使用API进行身份验证或使用没有任何问题,只是这次调用给我的错误。