Sage One Api使用php请求时出错

我正在使用https://github.com/eddieharrison/sageone-api-php连接Sage One。问题是,在访问令牌密钥后,当我使用当前从sage页面获取的访问令牌,例如get-ledger-accounts.php这样的服务时,每次都会出现以下错误

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": ""
        }
    ]
}

为什么?而如果我使用刷新令牌密钥,则会出现无效密钥的错误,这是正确的。有人能帮帮我吗

点赞