congress.api.webhook_model module

class congress.api.webhook_model.WebhookModel(name, bus=None)

Bases: congress.api.base.APIModel

Model for handling webhook notifications.

add_item(item, params, id_=None, context=None)

POST webhook notification.

Parameters
  • item – The webhook payload

  • params – A dict-like object containing parameters from the request query string and body.

  • id – not used in this case; should be None

  • context – Key-values providing frame of reference of request