UNPKG

@davidbolaji/termii-node

Version:

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

21 lines (20 loc) 558 B
/** * Service for verifying phone numbers and detecting DND & network status */ export class SearchService { constructor(http) { this.http = http; } /** * Verify phone number DND status and detect network * * @param payload - Request payload with phone_number * @returns Expanded SearchResponse with number details */ async checkNumber(payload) { return this.http.request("/check/dnd", { method: "GET", params: payload // send phone_number as query param }); } }