我正在使用https://github.com/eddieharrison/sageone-api-php连接到Sage one。问题是在我使用像get-ledger-accounts.php
之类的服务访问令牌密钥时,我每次收到此错误时都会从sage页面获取当前访问令牌
HTTP/1.1 401 Unauthorized
Content-Type: application/json
Date: Tue, 10 May 2016 11:50:57 GMT Server: openresty
Content-Length: 114
Connection: keep-alive
{
"$diagnoses": [
{
"$severity": "error",
"$dataCode": "AuthorizationFailure",
"$message": "Access Denied",
"$source": ""
}
]
}
为什么?然而,如果我使用刷新令牌密钥,则它会为无效密钥提供错误,这是正确的。有人可以帮我这个