hostedhooks 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/hostedhooks/client.rb +22 -0
- data/lib/hostedhooks/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '093a22d8709cbc6894963bb4bd6777cce0b8d52e7d641fc95e78a7597bc295ca'
|
4
|
+
data.tar.gz: 8318b0db4c1d30445d3d54f4f14148d1825ce5d4bd8f7228ee554e103e55dcd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9bbad172e93cee41f37de88444617e4ac18e8e4455f7650b7fca4739ced0dca685995d733f91eb4968e683cd16360b242e8b40f06d3aa515e1e9ef56a851abb
|
7
|
+
data.tar.gz: b1b175942ebe6abb7aa2af029483c89dcbf16e0530d923742d7f99b2eb21b65f6c1f2dd5b8312f0807b944570ca8e48ff4530c64f8617c8c2344aefdd3b4ce86
|
data/lib/hostedhooks/client.rb
CHANGED
@@ -44,6 +44,10 @@ module HostedHooks
|
|
44
44
|
get_response("/apps/#{app_uuid}/endpoints", params.slice(:page, :per_page, :offset))
|
45
45
|
end
|
46
46
|
|
47
|
+
def list_subscription_endpoints(subscription_uuid, params = {})
|
48
|
+
get_response("/subscriptions/#{subscription_uuid}/endpoints", params.slice(:page, :per_page, :offset))
|
49
|
+
end
|
50
|
+
|
47
51
|
def create_endpoint(subscription_uuid, payload = {})
|
48
52
|
post_response "/subscriptions/#{subscription_uuid}/endpoints", payload.slice(:url, :enabled_events, :version, :status, :description)
|
49
53
|
end
|
@@ -82,6 +86,24 @@ module HostedHooks
|
|
82
86
|
get_response("/apps/#{app_uuid}/webhook_attempts", params.slice(:page, :per_page, :offset))
|
83
87
|
end
|
84
88
|
|
89
|
+
# HookHelpers
|
90
|
+
|
91
|
+
def list_hook_helpers(params = {})
|
92
|
+
get_response("/hook_helpers", params.slice(:page, :per_page, :offset))
|
93
|
+
end
|
94
|
+
|
95
|
+
def get_hook_helper(hook_helper_uuid, params = {})
|
96
|
+
get_response("/hook_helpers/#{hook_helper_uuid}", params.slice(:page, :per_page, :offset))
|
97
|
+
end
|
98
|
+
|
99
|
+
def create_hook_helper(payload = {})
|
100
|
+
post_response "/hook_helpers", payload.slice(:label)
|
101
|
+
end
|
102
|
+
|
103
|
+
def update_hook_helper(hook_helper_uuid, payload = {})
|
104
|
+
patch_response "/hook_helpers/#{hook_helper_uuid}", payload.slice(:label, :endpoint_id)
|
105
|
+
end
|
106
|
+
|
85
107
|
private
|
86
108
|
|
87
109
|
HOSTEDHOOKS_API_ENDPOINT = "https://hostedhooks.com/api/v1"
|
data/lib/hostedhooks/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hostedhooks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Grabill
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|