node-easysms
Version:
EasySMS is an SMS sender for Node.js
20 lines (19 loc) • 673 B
TypeScript
import { Gateway } from "../Core/Gateway";
import { Message } from "../Core/Message";
import { PhoneNumber } from "../Core/PhoneNumber";
/**
* 极光短信服务
* @see [发送单条模板短信](https://docs.jiguang.cn/jsms/server/rest_api_jsms)
*/
export declare class UroraGateway extends Gateway<UroraGatewayConfig> {
static ENDPOINT_DOMAIN: string;
static ENDPOINT_VERSION: string;
send(to: PhoneNumber, message: Message): Promise<any>;
/**
* 生成授权信息
* @param config 极光短信配置
* @returns
*/
generateAuthorization(config: UroraGatewayConfig): string;
protected buildEndpoint(method: string): string;
}