Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

sbis3-bl-request

toys580.1.3

Модуль-обертка для выполенния запросов к бизнес-логике WI.SBIS

readme

WI.SBIS BL Request Helper

Что это?

Модуль-обертка для выполенния запросов к бизнес-логике WI.SBIS

Установка


$ npm install sbis3-bl-request

Использование


var
  bl = require('sbis3-bl-request'),
  options = {
      hostname: 'http://localhost/',
      path: '/admin/service/',
      method: 'POST'
  },
  params = {
      method: 'Конфигурация.Получить',
      data: {
          'Хост': '',
          'Порт': '',
          'Каталог': ''
      }
  },
  ext = {
      'X-NewHeader': '0010100101'
  };
bl.doRequest(options, params, ext).then(function (response) {
  if (response.error) {
      return new Error(response.error.message);
  }
  console.log(response);
});