@davidbolaji/termii-node
Version:
Node.js SDK for Termii API – send SMS, voice, OTP, and manage messaging with ease.
20 lines (19 loc) • 433 B
JavaScript
/**
* Service for fetching account balance
*/
export class BalanceService {
constructor(http) {
this.http = http;
}
/**
* Fetch the current account balance and currency
*
* @returns Expanded GetBalanceResponse with balance details
*/
async getBalance() {
return this.http.request("/get-balance", {
method: "GET",
authLocation: "query"
});
}
}