UNPKG

mailinator-client

Version:
19 lines (18 loc) 812 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PrivateCustomServiceWebhookRequest = void 0; const MailinatorRestClient_1 = require("../MailinatorRestClient"); const _resolveTemplateUrl = (whToken, customService) => { return `https://api.mailinator.com/api/v2/domains/private/${customService}?whtoken=${whToken}`; }; class PrivateCustomServiceWebhookRequest { constructor(whToken, customService, webhook) { this.whToken = whToken; this.customService = customService; this.webhook = webhook; } execute() { return MailinatorRestClient_1.default.create(_resolveTemplateUrl(this.whToken, this.customService), this.webhook); } } exports.PrivateCustomServiceWebhookRequest = PrivateCustomServiceWebhookRequest;