Method: Particle::Client::Webhooks#create_webhook

Defined in:
lib/particle/client/webhooks.rb

#create_webhook(options) ⇒ Webhook

Creates a new Particle webhook

Parameters:

  • options (Hash)

    Options to configure the webhook

Returns:

See Also:



48
49
50
51
# File 'lib/particle/client/webhooks.rb', line 48

def create_webhook(options)
  result = post(Webhook.create_path, options)
  webhook(result)
end