UNPKG

@davidbolaji/termii-node

Version:

Node.js SDK for Termii API – send SMS, voice, OTP, and manage messaging with ease.

24 lines (23 loc) 577 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BalanceService = void 0; /** * Service for fetching account balance */ 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" }); } } exports.BalanceService = BalanceService;