-
public final class CreateWebhookOptionsOptions for creating a webhook. Webhooks can be attached to inboxes and MailSlurp will POST a webhook payload to the URL specified whenever the inbox receives an email. Webhooks are great for processing many inbound emails.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumCreateWebhookOptions.EventNameOptional webhook event name. Default is
EMAIL_RECEIVED. Payload differ according to the webhook event name. Values: eMAILRECEIVED,nEWEMAIL,nEWCONTACT,nEWATTACHMENT
-
Field Summary
Fields Modifier and Type Field Description private final BasicAuthOptionsbasicAuthprivate final CreateWebhookOptions.EventNameeventNameprivate final Stringnameprivate final Stringurl
-
Constructor Summary
Constructors Constructor Description CreateWebhookOptions(BasicAuthOptions basicAuth, CreateWebhookOptions.EventName eventName, String name, String url)
-
Method Summary
Modifier and Type Method Description final BasicAuthOptionsgetBasicAuth()final CreateWebhookOptions.EventNamegetEventName()final StringgetName()final StringgetUrl()-
-
Constructor Detail
-
CreateWebhookOptions
CreateWebhookOptions(BasicAuthOptions basicAuth, CreateWebhookOptions.EventName eventName, String name, String url)
- Parameters:
eventName- Optional webhook event name.name- Optional name for the webhookurl- Public URL on your server that MailSlurp can post WebhookNotification payload to when an email is received.
-
-
Method Detail
-
getBasicAuth
final BasicAuthOptions getBasicAuth()
-
getEventName
final CreateWebhookOptions.EventName getEventName()
-
-
-
-