UNPKG

@davidbolaji/termii-node

Version:

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

21 lines (20 loc) 602 B
/** * Service for checking if a number is fake, valid, or ported */ export 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 }); } }