errorcause: 'AuthenticationErrorGeneral: SRV-110-Ошибка аутентификации, statusCode: 401'
Я прочитал сообщения, связанные с этой проблемой, но не могу решить эту проблему. кто-нибудь, пожалуйста, помогите.
const urlName = 'https://sandbox -quickbooks.api.intuit.com / v3 / company / xxxxxxxxxxxxx / customer? minorversion = 40 ';
const options = {
url: urlName,
method: 'GET',
headers: {
'Accept': 'application/json',
'client_id': 'xxxxxxxxxxxxxxxxxx',
'Client_Secret': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'id_token': 'eyJraWQiOiQuY29tXC9vcFwvdjEiLCJleHAiOjE1NzM0Njc2NjEsImlhdCI6MTU3MzQ2NDA2MX0.V45lZ_9KIRBp49VwSKM8fC4oMvPz1x8y5qsYbCjYlMO1MmqarTs82cxdJVhPmKV-Fv8As8x-kELBCO55_u2sK4hznc7sQdLPH4dJy7tHHduIK0FUvKzZB7pznbeTalVJZ_ALWdVFYiRkidB6T_7pLujrkNLFBLdEdAm7w39HENM',
'Access-Token': 'wARx8qtJpCPxiXrjlM4A2RrCjnhj-rzHtJOjidb_Qma2aIFpyHIDr1j3vU4-3raDuob34YcNwpz4xE41a4CabBUgX7yBHOk4QeIGJS-eYNqpUODLOzKx1EydIWnxuTgNLV2EKsh0nwGkzJq60_X9rZY0hHWSEAyyTg2wHWBp1OKcls8W2hr5Qi83vNohH_gvg2Q0SLFFKgFM5Nyz3l8G7reGxKIKS-JRBK7FaLgnU-wzQUnMycN51WvEq8t_2Zsds1_U8m5n8Pg9Ib7atSzg_KhoF3W01cZgw8Fw1dn5uxeRbbzCZX-mjfB2MO_DmSmE-hRmzR8w6sS40_aCCpKtxzG8NoJnGq3LdfzJG2JVxliLntZl6y5rqSSxZo4R2vpKQBqu-micyjgBfy2OUgyIUQwqvwCVvBJpx5lLIR2hgkMNIKkydce7dQ4NyVireMsVj2th.UKpMZmNQzFKpsSJQuIx4Xw',
'realmId': 'xxxxxxxxxxxxx',
'Token-Type':'bearer',
'refresh_token':'xxxxxxxxxxxxxxxxxxxxxxxxx',
'scope':'com.intuit.quickbooks.accounting',
'environment':'sandbox'
}
};
request(options, function(err, res, body) {
});