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) ‑> None

Unregister 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

NameTypeDescription
f Callable[[WebhookMessage], None] A callback that receives a dict containing the headers, query, and body of the message.

Inherited members

WebhookMessage

class WebhookMessage

Ancestors

  • builtins.dict

Instance variables

body

var body : Any

headers

var headers : dict[str, str]

query

var query : dict[str, str]