Package com.idanalyzer
Class Webhook
java.lang.Object
com.idanalyzer.Webhook
Webhook delivery log management (/webhook).
-
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodedeleteWebhook(String webhookId) Delete a webhook delivery log (DELETE /webhook/{id}).com.fasterxml.jackson.databind.JsonNodelistWebhook(int order, int limit, int offset, String event, int success, String createdAtMin, String createdAtMax) List webhook delivery logs (GET /webhook).com.fasterxml.jackson.databind.JsonNoderesendWebhook(String webhookId) Resend a webhook delivery (POST /webhook/{id}).
-
Method Details
-
listWebhook
public com.fasterxml.jackson.databind.JsonNode listWebhook(int order, int limit, int offset, String event, int success, String createdAtMin, String createdAtMax) List webhook delivery logs (GET /webhook).- Parameters:
order- sort order for the results.limit- maximum number of logs to return.offset- number of logs to skip (for pagination).event- optional event name to filter by; sent when non-empty.success- 0 or 1 to filter by success status; any other value is ignoredcreatedAtMin- optional lower bound (inclusive) on creation time; sent when non-empty.createdAtMax- optional upper bound (inclusive) on creation time; sent when non-empty.- Returns:
- the API response as a
JsonNode. - Throws:
ApiException- if the API returns an error or a transport error occurs.
-
resendWebhook
Resend a webhook delivery (POST /webhook/{id}).- Parameters:
webhookId- the webhook delivery log id to resend.- Returns:
- the API response as a
JsonNode. - Throws:
InvalidArgumentException- if webhookId is null or empty.ApiException- if the API returns an error or a transport error occurs.
-
deleteWebhook
Delete a webhook delivery log (DELETE /webhook/{id}).- Parameters:
webhookId- the webhook delivery log id to delete.- Returns:
- the API response as a
JsonNode. - Throws:
InvalidArgumentException- if webhookId is null or empty.ApiException- if the API returns an error or a transport error occurs.
-