1.0.14 • Published 10 months ago

@emallon/hms_connector v1.0.14

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

HMS Connector

The HMS connector allows connection with the AFI_V10 and CA_V20 protocols.

Installation

npm i --save @emallon/hms_conector

Quick start

const hms_connector = require('@emallon/hms_connector');
const post_config = {
    "host": "192.168.0.1",
    "port": "3000",
    "path": "/cawsTest/Servicios",
    "method": "POST",
    "headers": {"Content-Type": "text/xml; charset=utf-8"}
};
const request = { solicitud:{
      "emisor": {
        "id": "",
        "prot": "",
        "msgid": "10000",
        "time": "2020-11-04T21:15:24.312Z",
        "ter": "MOBILE",
        "app": "HMS_MOBILE"
      },
      "oper": { tipo: 'CTD', fecha: '2020-11-04', idaseg: 'UP' },
      "pid": { tipoid: 'CODIGO_AFI', id: '252004400' }
}};
async function connect(){
    let response = await hms_connector.connect(request ,post_config,true);
    console.log(response);
}    

connect();
1.0.14

10 months ago

1.0.13

1 year ago

1.0.11

2 years ago

1.0.12

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago