From 5b991802d92a7b28695f2f8a326a06ce0609f48a Mon Sep 17 00:00:00 2001 From: Daniel DeGroff Date: Tue, 3 Sep 2024 15:47:15 -0600 Subject: [PATCH] domain sync --- src/FusionAuth/FusionAuthClient.php | 48 +++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/src/FusionAuth/FusionAuthClient.php b/src/FusionAuth/FusionAuthClient.php index 047fcaf..ec0bf2c 100644 --- a/src/FusionAuth/FusionAuthClient.php +++ b/src/FusionAuth/FusionAuthClient.php @@ -4592,6 +4592,38 @@ public function retrieveWebhook($webhookId = NULL) ->go(); } + /** + * Retrieves a single webhook attempt log for the given Id. + * + * @param string $webhookAttemptLogId The Id of the webhook attempt log to retrieve. + * + * @return ClientResponse The ClientResponse. + * @throws \Exception + */ + public function retrieveWebhookAttemptLog($webhookAttemptLogId) + { + return $this->start()->uri("/api/system/webhook-attempt-log") + ->urlSegment($webhookAttemptLogId) + ->get() + ->go(); + } + + /** + * Retrieves a single webhook event log for the given Id. + * + * @param string $webhookEventLogId The Id of the webhook event log to retrieve. + * + * @return ClientResponse The ClientResponse. + * @throws \Exception + */ + public function retrieveWebhookEventLog($webhookEventLogId) + { + return $this->start()->uri("/api/system/webhook-event-log") + ->urlSegment($webhookEventLogId) + ->get() + ->go(); + } + /** * Retrieves all the webhooks. * @@ -5136,6 +5168,22 @@ public function searchUsersByQueryString($request) ->go(); } + /** + * Searches the webhook event logs with the specified criteria and pagination. + * + * @param array $request The search criteria and pagination information. + * + * @return ClientResponse The ClientResponse. + * @throws \Exception + */ + public function searchWebhookEventLogs($request) + { + return $this->start()->uri("/api/system/webhook-event-log/search") + ->bodyHandler(new JSONBodyHandler($request)) + ->post() + ->go(); + } + /** * Searches webhooks with the specified criteria and pagination. *