-
Notifications
You must be signed in to change notification settings - Fork 2
/
example.js
22 lines (21 loc) · 834 Bytes
/
example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const { getBanks, getBank } = require("./index");
console.log(getBanks()); // get a list of all licensed banks
getBanks((error, banks) => {
console.log(banks);
});
// get a bank by swiftcode
getBank("BKIGRWRW", function (error, bank) {
console.log(bank);
});
console.log(getBank("BKIGRWRW"));
// {
// name: 'BANK OF KIGALI LIMITED',
// swift_code: 'BKIGRWRW',
// bank_code: 'BKIG',
// address: 'KN 4 Ave, Kigali, Rwanda',
// postal_code: '175',
// phone_number: '+250788143000',
// toll_free: '4455',
// email_address: '[email protected]',
// ussd_code: '*334#'
// }