mailinator-client
Version:
Mailinator REST API client for JavaScript applications.
19 lines (18 loc) • 807 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PublicCustomServiceInboxWebhookRequest = void 0;
const MailinatorRestClient_1 = require("../MailinatorRestClient");
const _resolveTemplateUrl = (customService, inbox) => {
return `https://api.mailinator.com/api/v2/domains/public/${customService}/${inbox}`;
};
class PublicCustomServiceInboxWebhookRequest {
constructor(customService, inbox, webhook) {
this.customService = customService;
this.inbox = inbox;
this.webhook = webhook;
}
execute() {
return MailinatorRestClient_1.default.create(_resolveTemplateUrl(this.customService, this.inbox), this.webhook);
}
}
exports.PublicCustomServiceInboxWebhookRequest = PublicCustomServiceInboxWebhookRequest;