sim4me
v0.0.2
Published
Getting the amount of traffic from sim4me
Downloads
33
Readme
sim4me
This library gets the amount of traffic from sim4.me
.
Install
# npm
$ npm install sim4me
# or yarn
$ yarn add sim4me
Usage
const { traffic } = require('sim4me');
(async () => {
try {
const result = await traffic({
phone: '09012345678',
});
console.log(result);
} catch (error) {
console.log(error);
}
})();
API
traffic(options)
options
Type: object
options.phone
:string
Target phone number.
return
Type: object
object.total
:number
Total traffic.
object.traffic
:number[]
Values of daily traffic.
object.label
:number[]
Dates.