0.4.0 • Published 2 years ago

asiakastieto v0.4.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

asiakastieto

Nodejs Asiakastieto integration for our projects.

This library is developed for our internal purposes, but you may find it useful if you work with Asiakastieto in similar environment too.

Installation

Requirements: Suomen Asiakastieto agreement and credentials, NodeJS.

npm install asiakastieto --save

or using Yarn:

yarn add asiakastieto

Usage

const Asiakastieto = require('asiakastieto');

const asiakastietoConfig = {
  userid: process.env.USERID,
  passwd: process.env.PASSWD,
  shaKey: process.env.SHA_KEY
};

// do customer default check
const asiakastieto = new Asiakastieto(config);
const params = {
  enduser: 'ccccc',
  idnumber: process.env.ID_NUMBER,
  lang: 'EN',
  sequence: 25
};
const url = asiakastieto.buildDefaultCheckUrl(params);
const data = await asiakastieto.doRequestAndParseXML(url);

More documentation

Support

THe package is provided 'AS IS'. Usage of this package is with your own care and responsibility. ILO APPLICATIONS SL does not provide any warranty or support for this package. The package is intended for our own projects and we use it in production/live environment. If we see any problems in our projects, we will update and fix accordingly.

For any bug report and improvement ideas, we are happy to receive them at support (at sign) iloapps.es.. :)

0.4.0

2 years ago

0.3.0

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago