Class: MisarReach::WebhooksResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/misar_reach/client.rb

Overview

── Resource: Webhooks ───────────────────────────────────────────────────────

Instance Method Summary collapse

Methods inherited from Resource

#initialize

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

#listObject



434
435
436
# File 'lib/misar_reach/client.rb', line 434

def list
  @client.request(:get, "/webhooks/endpoints")
end