UNPKG

@brvhprince/termii-js

Version:

JavaScript SDK for Termii Provider

20 lines (19 loc) 716 B
/** * Project: termii-js * File: Insights * Created by pennycodes on 25/04/2023. * Copyright termii-js */ import HttpClient from "../service/client"; import { Balance, InboxHistory, SearchResponse, StatusQueryParams, StatusResponse } from "../interface/insights"; declare class Insights { private readonly client; private readonly api_key; private readonly sender_id; constructor(client: HttpClient, api_key: string, sender_id: string); balance(): Promise<Balance>; search_phone_number(phone_number: string): Promise<SearchResponse>; status_phone_number(payload: StatusQueryParams): Promise<StatusResponse>; history(): Promise<InboxHistory[]>; } export default Insights;