hostedhooks 0.2.0 → 0.4.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/README.md +7 -9
- data/lib/hostedhooks/client.rb +19 -2
- data/lib/hostedhooks/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c34b903e07273e18fcc85aa17e98d1be93f4577b5ca81cb22bc12f9e07627288
|
4
|
+
data.tar.gz: 386d4b6c54304107ebd346bf0a4420aae45533679159c177286b9d41866ffc3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a0bf6942fc4a37f118c8a989d365287902e3c8a6a908a062ae3af9af6c7e90f4e9d42e904b765dd92f78fd184b48f880fb084d32af0661780411540697dee98
|
7
|
+
data.tar.gz: 0be20d905dff3a54a09b2060ff7942b3734adf3f7a5cc15cc813a884b06993108feb291ee1a0cb1d22d481c494bf883a2a0ebbadbda4052ca68d9483928e5576
|
data/README.md
CHANGED
@@ -30,10 +30,8 @@ Initialize the gem with your API key that is [found here](https://www.hostedhook
|
|
30
30
|
|
31
31
|
client.get_endpoint("endpoint_uuid")
|
32
32
|
|
33
|
-
|
34
33
|
### Get a collection of records
|
35
34
|
|
36
|
-
|
37
35
|
client.list_subscriptions("app_uuid")
|
38
36
|
|
39
37
|
### Create a record
|
@@ -46,17 +44,17 @@ Initialize the gem with your API key that is [found here](https://www.hostedhook
|
|
46
44
|
|
47
45
|
|
48
46
|
## Resources
|
49
|
-
|
50
|
-
*
|
51
|
-
*
|
52
|
-
*
|
53
|
-
*
|
54
|
-
*
|
47
|
+
* [Apps](https://developer.hostedhooks.com/#apps)
|
48
|
+
* [Subscriptions](https://developer.hostedhooks.com/#subscriptions)
|
49
|
+
* [Endpoints](https://developer.hostedhooks.com/#endpoints)
|
50
|
+
* [Webhook Events](https://developer.hostedhooks.com/#webhook-events)
|
51
|
+
* [Messages](https://developer.hostedhooks.com/#messages)
|
52
|
+
* [Webhook Attempts](https://developer.hostedhooks.com/#webhook-attempts)
|
55
53
|
|
56
54
|
|
57
55
|
## Contributing
|
58
56
|
|
59
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
57
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/HostedHooks/hostedhooks-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/HostedHooks/hostedhooks-ruby/blob/master/CODE_OF_CONDUCT.md).
|
60
58
|
|
61
59
|
## Code of Conduct
|
62
60
|
|
data/lib/hostedhooks/client.rb
CHANGED
@@ -82,10 +82,27 @@ module HostedHooks
|
|
82
82
|
get_response("/apps/#{app_uuid}/webhook_attempts", params.slice(:page, :per_page, :offset))
|
83
83
|
end
|
84
84
|
|
85
|
+
# HookHelpers
|
86
|
+
|
87
|
+
def list_hook_helpers(params = {})
|
88
|
+
get_response("/hook_helpers", params.slice(:page, :per_page, :offset))
|
89
|
+
end
|
90
|
+
|
91
|
+
def get_hook_helper(hook_helper_uuid, params = {})
|
92
|
+
get_response("/hook_helpers/#{hook_helper_uuid}", params.slice(:page, :per_page, :offset))
|
93
|
+
end
|
94
|
+
|
95
|
+
def create_hook_helper(payload = {})
|
96
|
+
post_response "/hook_helpers", payload.slice(:label)
|
97
|
+
end
|
98
|
+
|
99
|
+
def update_hook_helper(hook_helper_uuid, payload = {})
|
100
|
+
patch_response "/hook_helpers/#{hook_helper_uuid}", payload.slice(:label, :endpoint_id)
|
101
|
+
end
|
102
|
+
|
85
103
|
private
|
86
104
|
|
87
|
-
|
88
|
-
HOSTEDHOOKS_API_ENDPOINT = "http://localhost:7891/api/v1"
|
105
|
+
HOSTEDHOOKS_API_ENDPOINT = "https://hostedhooks.com/api/v1"
|
89
106
|
|
90
107
|
def get_response(url, params=nil)
|
91
108
|
if params
|
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.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Grabill
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
description:
|
27
|
+
description:
|
28
28
|
email:
|
29
29
|
- ian@hostedhooks.com
|
30
30
|
executables: []
|
@@ -48,7 +48,7 @@ licenses:
|
|
48
48
|
- MIT
|
49
49
|
metadata:
|
50
50
|
homepage_uri: https://github.com/HostedHooks/hostedhooks-ruby
|
51
|
-
post_install_message:
|
51
|
+
post_install_message:
|
52
52
|
rdoc_options: []
|
53
53
|
require_paths:
|
54
54
|
- lib
|
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
version: '0'
|
65
65
|
requirements: []
|
66
66
|
rubygems_version: 3.1.4
|
67
|
-
signing_key:
|
67
|
+
signing_key:
|
68
68
|
specification_version: 4
|
69
69
|
summary: A ruby library for the HostedHooks API
|
70
70
|
test_files: []
|