Merge branch 'master' of https://git.citpb.ru/Dollerok/P8-ExchangeService
This commit is contained in:
commit
5f88a45710
@ -10,6 +10,7 @@
|
||||
const xml2js = require("xml2js"); //Конвертация XML в JSON и JSON в XML
|
||||
const _ = require("lodash"); //Работа с коллекциями и объектами
|
||||
const rqp = require("request-promise"); //Работа с HTTP/HTTPS запросами
|
||||
const config = require("../config"); //Параметры сервера
|
||||
const { SDDAUTH_API_CLIENT_ID, SDEPARTMENT_NAME, SDEPARTMENT_ID } = require("./diadoc_config"); //Ключ разработчика
|
||||
|
||||
//---------------------
|
||||
@ -128,7 +129,7 @@ const checkAPIClientId = sAPIClientId => {
|
||||
//Формиорвание заголовка сообщения
|
||||
const buildHeaders = (sAPIClientId, sToken = null) => ({
|
||||
"Content-type": "application/json",
|
||||
"X-Solution-Info": "PARUS",
|
||||
"X-Solution-Info": `PARUS_${config.common.sRelease}`,
|
||||
Authorization: `DiadocAuth ddauth_api_client_id=${sAPIClientId}${sToken ? `,ddauth_token=${sToken}` : ""}`,
|
||||
Accept: "application/json"
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user