platypush.message.event.http.hook

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

Event triggered when a custom webhook is called.

__init__(hook, method, data=None, args=None, *argv, **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