public class WebhookControllerApi extends Object
| Constructor and Description |
|---|
WebhookControllerApi() |
WebhookControllerApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
WebhookDto |
createWebhook(UUID inboxId,
CreateWebhookOptions webhookOptions)
Attach a WebHook URL to an inbox
Get notified whenever an inbox receives an email via a WebHook URL.
|
okhttp3.Call |
createWebhookAsync(UUID inboxId,
CreateWebhookOptions webhookOptions,
ApiCallback<WebhookDto> _callback)
Attach a WebHook URL to an inbox (asynchronously)
Get notified whenever an inbox receives an email via a WebHook URL.
|
okhttp3.Call |
createWebhookCall(UUID inboxId,
CreateWebhookOptions webhookOptions,
ApiCallback _callback)
Build call for createWebhook
|
ApiResponse<WebhookDto> |
createWebhookWithHttpInfo(UUID inboxId,
CreateWebhookOptions webhookOptions)
Attach a WebHook URL to an inbox
Get notified whenever an inbox receives an email via a WebHook URL.
|
void |
deleteWebhook(UUID inboxId,
UUID webhookId)
Delete and disable a Webhook for an Inbox
|
okhttp3.Call |
deleteWebhookAsync(UUID inboxId,
UUID webhookId,
ApiCallback<Void> _callback)
Delete and disable a Webhook for an Inbox (asynchronously)
|
okhttp3.Call |
deleteWebhookCall(UUID inboxId,
UUID webhookId,
ApiCallback _callback)
Build call for deleteWebhook
|
ApiResponse<Void> |
deleteWebhookWithHttpInfo(UUID inboxId,
UUID webhookId)
Delete and disable a Webhook for an Inbox
|
PageWebhookProjection |
getAllWebhooks(Integer page,
Integer size,
String sort)
List Webhooks Paginated
List webhooks in paginated form.
|
okhttp3.Call |
getAllWebhooksAsync(Integer page,
Integer size,
String sort,
ApiCallback<PageWebhookProjection> _callback)
List Webhooks Paginated (asynchronously)
List webhooks in paginated form.
|
okhttp3.Call |
getAllWebhooksCall(Integer page,
Integer size,
String sort,
ApiCallback _callback)
Build call for getAllWebhooks
|
ApiResponse<PageWebhookProjection> |
getAllWebhooksWithHttpInfo(Integer page,
Integer size,
String sort)
List Webhooks Paginated
List webhooks in paginated form.
|
ApiClient |
getApiClient() |
WebhookDto |
getWebhook(UUID webhookId)
Get a webhook for an Inbox
|
okhttp3.Call |
getWebhookAsync(UUID webhookId,
ApiCallback<WebhookDto> _callback)
Get a webhook for an Inbox (asynchronously)
|
okhttp3.Call |
getWebhookCall(UUID webhookId,
ApiCallback _callback)
Build call for getWebhook
|
List<WebhookDto> |
getWebhooks(UUID inboxId)
Get all Webhooks for an Inbox
|
okhttp3.Call |
getWebhooksAsync(UUID inboxId,
ApiCallback<List<WebhookDto>> _callback)
Get all Webhooks for an Inbox (asynchronously)
|
okhttp3.Call |
getWebhooksCall(UUID inboxId,
ApiCallback _callback)
Build call for getWebhooks
|
ApiResponse<List<WebhookDto>> |
getWebhooksWithHttpInfo(UUID inboxId)
Get all Webhooks for an Inbox
|
ApiResponse<WebhookDto> |
getWebhookWithHttpInfo(UUID webhookId)
Get a webhook for an Inbox
|
WebhookTestResult |
sendTestData(UUID webhookId)
Send webhook test data
|
okhttp3.Call |
sendTestDataAsync(UUID webhookId,
ApiCallback<WebhookTestResult> _callback)
Send webhook test data (asynchronously)
|
okhttp3.Call |
sendTestDataCall(UUID webhookId,
ApiCallback _callback)
Build call for sendTestData
|
ApiResponse<WebhookTestResult> |
sendTestDataWithHttpInfo(UUID webhookId)
Send webhook test data
|
void |
setApiClient(ApiClient apiClient) |
public WebhookControllerApi()
public WebhookControllerApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call createWebhookCall(UUID inboxId, CreateWebhookOptions webhookOptions, ApiCallback _callback) throws ApiException
inboxId - inboxId (required)webhookOptions - webhookOptions (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public WebhookDto createWebhook(UUID inboxId, CreateWebhookOptions webhookOptions) throws ApiException
inboxId - inboxId (required)webhookOptions - webhookOptions (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public ApiResponse<WebhookDto> createWebhookWithHttpInfo(UUID inboxId, CreateWebhookOptions webhookOptions) throws ApiException
inboxId - inboxId (required)webhookOptions - webhookOptions (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public okhttp3.Call createWebhookAsync(UUID inboxId, CreateWebhookOptions webhookOptions, ApiCallback<WebhookDto> _callback) throws ApiException
inboxId - inboxId (required)webhookOptions - webhookOptions (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public okhttp3.Call deleteWebhookCall(UUID inboxId, UUID webhookId, ApiCallback _callback) throws ApiException
inboxId - inboxId (required)webhookId - webhookId (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
public void deleteWebhook(UUID inboxId, UUID webhookId) throws ApiException
inboxId - inboxId (required)webhookId - webhookId (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
public ApiResponse<Void> deleteWebhookWithHttpInfo(UUID inboxId, UUID webhookId) throws ApiException
inboxId - inboxId (required)webhookId - webhookId (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
public okhttp3.Call deleteWebhookAsync(UUID inboxId, UUID webhookId, ApiCallback<Void> _callback) throws ApiException
inboxId - inboxId (required)webhookId - webhookId (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
public okhttp3.Call getAllWebhooksCall(Integer page, Integer size, String sort, ApiCallback _callback) throws ApiException
page - Optional page index in inbox list pagination (optional, default to 0)size - Optional page size in inbox list pagination (optional, default to 20)sort - Optional createdAt sort direction ASC or DESC (optional, default to ASC)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | OK | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public PageWebhookProjection getAllWebhooks(Integer page, Integer size, String sort) throws ApiException
page - Optional page index in inbox list pagination (optional, default to 0)size - Optional page size in inbox list pagination (optional, default to 20)sort - Optional createdAt sort direction ASC or DESC (optional, default to ASC)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | OK | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public ApiResponse<PageWebhookProjection> getAllWebhooksWithHttpInfo(Integer page, Integer size, String sort) throws ApiException
page - Optional page index in inbox list pagination (optional, default to 0)size - Optional page size in inbox list pagination (optional, default to 20)sort - Optional createdAt sort direction ASC or DESC (optional, default to ASC)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | OK | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public okhttp3.Call getAllWebhooksAsync(Integer page, Integer size, String sort, ApiCallback<PageWebhookProjection> _callback) throws ApiException
page - Optional page index in inbox list pagination (optional, default to 0)size - Optional page size in inbox list pagination (optional, default to 20)sort - Optional createdAt sort direction ASC or DESC (optional, default to ASC)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | OK | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public okhttp3.Call getWebhookCall(UUID webhookId, ApiCallback _callback) throws ApiException
webhookId - webhookId (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | OK | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public WebhookDto getWebhook(UUID webhookId) throws ApiException
webhookId - webhookId (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | OK | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public ApiResponse<WebhookDto> getWebhookWithHttpInfo(UUID webhookId) throws ApiException
webhookId - webhookId (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | OK | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public okhttp3.Call getWebhookAsync(UUID webhookId, ApiCallback<WebhookDto> _callback) throws ApiException
webhookId - webhookId (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | OK | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public okhttp3.Call getWebhooksCall(UUID inboxId, ApiCallback _callback) throws ApiException
inboxId - inboxId (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | OK | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public List<WebhookDto> getWebhooks(UUID inboxId) throws ApiException
inboxId - inboxId (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | OK | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public ApiResponse<List<WebhookDto>> getWebhooksWithHttpInfo(UUID inboxId) throws ApiException
inboxId - inboxId (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | OK | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public okhttp3.Call getWebhooksAsync(UUID inboxId, ApiCallback<List<WebhookDto>> _callback) throws ApiException
inboxId - inboxId (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | OK | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public okhttp3.Call sendTestDataCall(UUID webhookId, ApiCallback _callback) throws ApiException
webhookId - webhookId (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public WebhookTestResult sendTestData(UUID webhookId) throws ApiException
webhookId - webhookId (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public ApiResponse<WebhookTestResult> sendTestDataWithHttpInfo(UUID webhookId) throws ApiException
webhookId - webhookId (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public okhttp3.Call sendTestDataAsync(UUID webhookId, ApiCallback<WebhookTestResult> _callback) throws ApiException
webhookId - webhookId (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
Copyright © 2021. All rights reserved.