platypush.message.event.http.hook

class platypush.message.event.http.hook.WebhookEvent(*argv, hook, method, data=None, args=None, headers=None, **kwargs)[source]

Event triggered when a custom webhook is called.

__init__(*argv, hook, method, data=None, args=None, headers=None, **kwargs)[source]
Parameters
  • hook (str) – Name of the invoked web hook, from http://host:port/hook/<hook>

  • method (str) – HTTP method (in uppercase)

  • data (str or dict/list from JSON) – Extra data passed over POST/PUT/DELETE

  • args (dict) – Extra query string arguments

  • headers – Request headers