Class: MisarReach::WebhooksResource
- Defined in:
- lib/misar_reach/client.rb
Overview
── Resource: Webhooks ───────────────────────────────────────────────────────
Instance Method Summary collapse
-
#create(data) ⇒ Object
Register an endpoint.
- #list ⇒ Object
Methods inherited from Resource
Constructor Details
This class inherits a constructor from MisarReach::Resource
Instance Method Details
#create(data) ⇒ Object
Register an endpoint. The response carries the signing secret exactly once — store it then; it is not retrievable afterwards.
440 441 442 |
# File 'lib/misar_reach/client.rb', line 440 def create(data) @client.request(:post, "/webhooks/endpoints", data) end |
#list ⇒ Object
434 435 436 |
# File 'lib/misar_reach/client.rb', line 434 def list @client.request(:get, "/webhooks/endpoints") end |