node-easysms
Version:
EasySMS is an SMS sender for Node.js
19 lines (18 loc) • 726 B
TypeScript
import { Gateway } from "../Core/Gateway";
import { Message } from "../Core/Message";
import { PhoneNumber } from "../Core/PhoneNumber";
/**
* 百度云短信服务
* @see https://cloud.baidu.com/doc/SMS/s/lkijy5wvf
*/
export declare class BaiduGateway extends Gateway<BaiduGatewayConfig> {
static ENDPOINT_HOST: string;
static ENDPOINT_METHOD: string;
static ENDPOINT_VERSION: string;
static ENDPOINT_FORMAT: string;
send(to: PhoneNumber, message: Message): Promise<any>;
protected getDomain(): string;
protected getEndpointUrl(): string;
protected generateSign(headers: Record<string, any>, time: string): string;
protected getCanonicalHeaders(headers: Record<string, any>): string;
}