Class Webhook

java.lang.Object
com.idanalyzer.Webhook

public class Webhook extends Object
Webhook delivery log management (/webhook).
  • 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 ignored
      createdAtMin - 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

      public com.fasterxml.jackson.databind.JsonNode resendWebhook(String webhookId)
      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

      public com.fasterxml.jackson.databind.JsonNode deleteWebhook(String webhookId)
      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.