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