UNPKG

xsa_node_client

Version:

Node XSA UAA Client - A package to access resources secured by XSA UAA using technical user login credentials

37 lines (29 loc) 1.06 kB
### Node.JS Client for XSA Resource Access. Access resources that are protected by XSUAA in HANA XSA using login credentials (technical user). Can be used as proxy along with express framework. _Installation:_ ```npm i xsa_node_client``` _Usage Example:_ ``` var xsa_nc = require('xsa_node_client'); var opts = { https: true, host: 'hxehost', port: '51121', path: '/destination/hr/employee.xsodata/$metadata', defaultXSAPorts: true, user: 'test', pass: 'dummy' }; xsa_nc.getContent(opts,function(data){ /* Callback response will contain - data.res = Response Object - data.body = Response Body - data.err = Error */ console.log(data.body); }); ``` You can debug for errors by setting the `DEBUG` environment variable. ![Debug Information Displayed in Console](https://raw.githubusercontent.com/hemchander23/xsa_node_client/master/res/Debug%20Mode.png) Please note that this is an unofficial package. Developer is not liable for any risks/ damages caused thereby.