asiakastieto

0.4.0 • Public • Published

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.. :)

Readme

Keywords

Package Sidebar

Install

npm i asiakastieto

Weekly Downloads

1

Version

0.4.0

License

Apache-2.0

Unpacked Size

59.3 kB

Total Files

23

Last publish

Collaborators

  • iloapps