1.0.4 • Published 5 years ago
ibs_service v1.0.4
IBSBridge-nodejs-library
Node library to the ibsbridge service
sample usage:
import {IBSBridgeService} from 'ibsbridge_service' ;
(async ()=>{
try {
const m = new IBSBridgeService();
// Getting Account information
let r = await m.getAccountInfo("0069636663")
console.log(r);
/**
* Sample output
*
* { email: 'S.STACKNG@GMAIL.COM',
phone_number: '09024753839',
gender: 'male ',
dob: 1984-12-31T23:00:00.000Z,
customer_id: '14414797' }
*/
//Getting Nuban data
let r2 = await m.getNubanAccount("0069636663")
/**
* Sample output
*
{ first_name: 'OLUBODUN',
last_name: 'AGBALAYA',
customer_id: '14414797',
email: 'S.STACKNG@GMAIL.COM',
dob: 1984-12-31T23:00:00.000Z }s
*/
} catch (e) {
//we get here if an error occured or account info not retrieved
}
})()
Requires the following in a .env
#mode is 0 or 1, for secured and unsecured, use 0 if unsure
IBS_SSL_MODE = 0
#ibs soap url e.g https://pass.sterlingbankng.com/IBSIntegrator/IBSBridge.asmx?wsdl
IBS_BRIDGE_URL =
#configured appid
IBS_APP_ID =
#integer type for this request
NUBAN_REQUEST_IBS_REQUESTTYPE =
#integer type for this request
ACCOUNT_INFO_IBS_REQUESTTYPE =