CloudWebhook
homey.cloud_webhook
A webhook that can receive incoming messages.
Ancestors
- SimpleClass
- homey.util.event_emitter.EventEmitter
- typing.Generic
- homey.client.serializer.Serializable
- abc.ABC
Methods
unregister
async def unregister(self) ‑> NoneUnregister this webhook handler.
on_message
def on_message(self,f: Callable[[WebhookMessage], None]) ‑> Self
The message event is fired when a webhook message is received.
Args
| Name | Type | Description |
|---|---|---|
f |
Callable[[WebhookMessage], None] | A callback that receives a dict containing the headers, query, and body of the message. |
Inherited members
WebhookMessage
Ancestors
- builtins.dict