- Checking Balance
- Get Price List
- Make a Transaction
- Checing Transaction Status
- Install
Git
andNodeJS
- Clone Repository
git clone https://github.com/andhkdwmln/digi-api
- Move to directory
cd digi-api
- Install required module
npm install
- Build
npm run build
- Compiled code inside
lib
folder
OR
- Installation via NPM :
npm install digi-api
const { Topup } = require('digi-api');
const bot = new Topup('digiflazz-username', 'digiflazz-apikey');
(async () => {
const saldo = await bot.Saldo();
console.log(saldo);
})();