we-toolkit is a package that provides easy access to Telecom Egypt's API.
Use the package manager npm to install we-toolkit.
npm install we-toolkit
import { getBalance, getUsage, login } from "we-toolkit"
// Use the functions provided by the package
// For example:
let authData = await login("number", "password");
let balance = await getBalance(authData);
let usage = await getUsage(authData);
Logs in to the service and returns an authData
object.
Returns the balance for the authenticated user.
Returns the data usage for the authenticated user.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
- Password encryption helper function is made by: Ahmed basset
- Login functionality is made by: Abdelrahman Tarek