Module homey.cloud_webhook
Classes
class CloudWebhook-
A webhook that can receive incoming messages.
Ancestors
- SimpleClass
- EventEmitter
- typing.Generic
- homey.client.serializer.Serializable
- abc.ABC
Methods
async def unregister(self) ‑> None-
Unregister this webhook handler.
def on_message(self,
f: Callable[[WebhookMessage], None]) ‑> Self-
The
messageevent is fired when a webhook message is received.Args
f- A callback that receives a dict containing the headers, query, and body of the message.
Inherited members
class WebhookMessage-
Ancestors
- builtins.dict
Instance variables
var body : Anyvar headers : dict[str, str]var query : dict[str, str]