public interface MailgunWebhooksApi extends MailgunApi
Webhooks API allows you to create, access, and delete webhooks programmatically.
| Modifier and Type | Method and Description |
|---|---|
WebhookResult |
createNewWebhook(String domain,
WebhookRequest request)
Creates a new webhook.
|
feign.Response |
createNewWebhookFeignResponse(String domain,
WebhookRequest request)
Creates a new webhook.
|
WebhookResult |
deleteWebhook(String domain,
WebhookName webhookName)
Deletes an existing webhook.
|
feign.Response |
deleteWebhookFeignResponse(String domain,
WebhookName webhookName)
Deletes an existing webhook.
|
WebhookListResult |
getAllWebhooks(String domain)
Returns a list of webhooks set for the specified domain.
|
feign.Response |
getAllWebhooksFeignResponse(String domain)
Returns a list of webhooks set for the specified domain.
|
WebhookDetailsResult |
getWebhookDetails(String domain,
WebhookName webhookName)
Return details about a webhook specified in the URL.
|
feign.Response |
getWebhookDetailsFeignResponse(String domain,
WebhookName webhookName)
Return details about a webhook specified in the URL.
|
WebhookResult |
updateWebhook(String domain,
WebhookName webhookName,
WebhookUpdateRequest request)
Updates an existing webhook.
|
feign.Response |
updateWebhookFeignResponse(String domain,
WebhookName webhookName,
WebhookUpdateRequest request)
Updates an existing webhook.
|
getApiVersionWebhookListResult getAllWebhooks(String domain)
Returns a list of webhooks set for the specified domain.
domain - Name of the domainWebhookListResultfeign.Response getAllWebhooksFeignResponse(String domain)
Returns a list of webhooks set for the specified domain.
domain - Name of the domainResponseWebhookDetailsResult getWebhookDetails(String domain, WebhookName webhookName)
Return details about a webhook specified in the URL.
domain - Name of the domainwebhookName - Name of the webhook.WebhookDetailsResultfeign.Response getWebhookDetailsFeignResponse(String domain, WebhookName webhookName)
Return details about a webhook specified in the URL.
domain - Name of the domainwebhookName - Name of the webhook.ResponseWebhookResult createNewWebhook(String domain, WebhookRequest request)
Creates a new webhook.
Warning: When adding a Clicked or Opened webhook, ensure that you also have tracking enabled.domain - Name of the domainrequest - WebhookRequestWebhookResultfeign.Response createNewWebhookFeignResponse(String domain, WebhookRequest request)
Creates a new webhook. Warning: When adding a Clicked or Opened webhook, ensure that you also have tracking enabled.
domain - Name of the domainrequest - WebhookRequestResponseWebhookResult updateWebhook(String domain, WebhookName webhookName, WebhookUpdateRequest request)
Updates an existing webhook.
domain - Name of the domainwebhookName - Name of the webhook.request - WebhookUpdateRequestWebhookResultfeign.Response updateWebhookFeignResponse(String domain, WebhookName webhookName, WebhookUpdateRequest request)
Updates an existing webhook.
domain - Name of the domainwebhookName - Name of the webhook.request - WebhookUpdateRequestResponseWebhookResult deleteWebhook(String domain, WebhookName webhookName)
Deletes an existing webhook.
domain - Name of the domainwebhookName - Name of the webhook.WebhookResultfeign.Response deleteWebhookFeignResponse(String domain, WebhookName webhookName)
Deletes an existing webhook.
domain - Name of the domainwebhookName - Name of the webhook.ResponseCopyright © 2022. All rights reserved.