@davidbolaji/termii-node
Version:
Node.js SDK for Termii API – send SMS, voice, OTP, and manage messaging with ease.
25 lines (24 loc) • 699 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SearchService = void 0;
/**
* Service for verifying phone numbers and detecting DND & network status
*/
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
});
}
}
exports.SearchService = SearchService;