we-toolkit
v0.0.2
Published
A set of utility functions to simplify dealing with WE's (Telecom Egypt) API
Downloads
1
Readme
we-toolkit
we-toolkit is a package that provides easy access to Telecom Egypt's API.
Installation
Use the package manager npm to install we-toolkit.
npm install we-toolkit
Usage
const { getBalance, getUsage, login } = require("we-toolkit");
// Use the functions provided by the package
// For example:
let authData = login("number", "password");
let balance = getBalance(authData);
let usage = getUsage(authData);
API
login(number, password)
Logs in to the service and returns an authData
object.
getBalance(authData)
Returns the balance for the authenticated user.
getUsage(authData)
Returns the data usage for the authenticated user.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Acknowledgements
- Password encryption helper function is made by: Ahmed basset
- Login functionality is made by: Abdelrahman Tarek