Method: Particle::Client::Webhooks#webhook_attributes

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

#webhook_attributes(target) ⇒ Hash

Get information about a Particle webhook

The Particle cloud will send a test message to the webhook URL when this is called

Parameters:

Returns:

  • (Hash)

    The webhook attributes and test message response



39
40
41
# File 'lib/particle/client/webhooks.rb', line 39

def webhook_attributes(target)
  get(webhook(target).path)
end