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