From 5e410dd1ce816c154e939904fded27c26d9b150d Mon Sep 17 00:00:00 2001 From: Matt Cameron Date: Thu, 9 Jan 2025 11:44:07 +1100 Subject: [PATCH] Add method for listing endpoint webhook_attempts --- lib/hostedhooks/client.rb | 4 ++++ lib/hostedhooks/version.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/hostedhooks/client.rb b/lib/hostedhooks/client.rb index 824b919..1b327fc 100644 --- a/lib/hostedhooks/client.rb +++ b/lib/hostedhooks/client.rb @@ -86,6 +86,10 @@ def list_webhook_attempts(app_uuid, params = {}) get_response("/apps/#{app_uuid}/webhook_attempts", params.slice(:page, :per_page, :offset)) end + def list_endpoint_webhook_attempts(app_uuid, endpoint_uuid, params = {}) + get_response("/apps/#{app_uuid}/endpoints/#{endpoint_uuid}/webhook_attempts", params.slice(:page, :per_page, :offset)) + end + # HookHelpers def list_hook_helpers(params = {}) diff --git a/lib/hostedhooks/version.rb b/lib/hostedhooks/version.rb index 463a632..c23a1c4 100644 --- a/lib/hostedhooks/version.rb +++ b/lib/hostedhooks/version.rb @@ -1,3 +1,3 @@ module HostedHooks - VERSION = "0.5.0" + VERSION = "0.6.0" end