Module: Revolut::Clients::Webhooks

Included in:
Revolut::Client
Defined in:
lib/revolut/clients/webhooks.rb

Overview

Revolut Webhooks

Instance Method Summary collapse

Instance Method Details

#create_webhook(params = {}) ⇒ Hash

Create webhook

Parameters:

  • params (Hash) (defaults to: {})

    A customizable set of params.

Options Hash (params):

  • :url (String)

    Call back endpoint of the client system, https is the supported protocol.

Returns:

  • (Hash)

    Response from API.

See Also:



16
17
18
# File 'lib/revolut/clients/webhooks.rb', line 16

def create_webhook(params = {})
  connection.post('webhook', params)
end