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