2.0.1 • Published 8 years ago
dialoglk-data-usage v2.0.1
dialoglk-data-usage
CLI to check Dialog(Sri Lankan ISP) data usage
CLI
$ npm install --global dialoglk-data-usage
$ dialoglk-data-usage --help
Get data usage from dialog (Sri Lankan ISP)
dialoglk-data-usage [IMSI] [NIC] [Connection Number]
$ dialoglk-data-usage 9245438badc526e6_7c7d86e5-741d-412e-be5a-d9213956e5e0 911972300V 114117600
{ any:
{ quota: '25 GB',
usage: '19.43 GB',
expire_date: '2016/09/01 00:00:00' },
night:
{ quota: '25 GB',
usage: '19.43 GB',
expire_date: '2016/09/01 00:00:00' } }
API
$ npm install --save dailoglk-data-usage
var getDataUsage = require('dialoglk-data-usage');
dataUsage('9245438badc526e6_7c7d86e5-741d-412e-be5a-d9213956e5e0', '911972300V', '114117600', function(error, data){
console.log(data);
});