1.0.15 • Published 9 months ago

@emallon/hms_connector v1.0.15

Weekly downloads
-
License
ISC
Repository
-
Last release
9 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.15

9 months ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.11

3 years ago

1.0.12

3 years ago

1.0.10

3 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago