UNPKG

cloudmailin

Version:

Official Node.js for the CloudMailin Email API - https://www.cloudmailin.com

19 lines (18 loc) 554 B
import { Message, MessageRaw, MessageResponse } from "./models/message"; export interface MessageClientOptions { username?: string; apiKey?: string; host?: string; baseURL?: string; smtpUrl?: string; } export default class MessageClient { private options; private version; constructor(options?: MessageClientOptions); sendMessage(message: Message): Promise<MessageResponse>; sendRawMessage(message: MessageRaw): Promise<MessageResponse>; private makeRequest; private handleError; private makeClient; }