geezsms
Version:
GeezSMS Typscript wrapper.
25 lines (24 loc) • 747 B
TypeScript
import { AxiosInstance } from 'axios';
import GeezSMSAPIResponse, { GeezSuccesReponse } from './interface/geezsmsapiresponse';
declare class SingleSMS {
_httpClient: AxiosInstance;
constructor(_httpClient: AxiosInstance);
send(request: SingleSMSRequest, option?: SmsOption): Promise<GeezSMSAPIResponse<GeezSuccesReponse>>;
__handleException(error: any): void;
}
export interface SingleSMSRequest {
phone: string;
msg: string;
shortcode_id?: string;
callback?: string;
sender_id?: string | number;
template?: boolean;
templateValues?: {
[key: string]: string;
};
}
export interface SmsOption {
sandbox: boolean;
apiVersion: number;
}
export default SingleSMS;