UNPKG

@davidbolaji/termii-node

Version:

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

25 lines (24 loc) 743 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StatusService = void 0; /** * Service for checking if a number is fake, valid, or ported */ class StatusService { constructor(http) { this.http = http; } /** * Check number status, detect if ported, and retrieve operator details * * @param payload - Request payload with phone_number and country_code * @returns Expanded StatusResponse with full details */ async checkStatus(payload) { return this.http.request("/insight/number/query", { method: "GET", params: payload // phone_number & country_code as query params }); } } exports.StatusService = StatusService;