A representation of a Webhook, which provides methods to create, list, update, and delete webhooks that are used to receive notifications of specific events.

Constructors

Properties

model: null | Webhook

Methods

  • Deletes the webhook.

    Returns Promise<void>

    A promise that resolves when the webhook is deleted and its attributes are set to null.

  • Returns the ID of the webhook.

    Returns undefined | string

    The ID of the webhook, or undefined if the model is null.

  • Returns the network ID associated with the webhook.

    Returns undefined | string

    The network ID of the webhook, or undefined if the model is null.

  • Returns the notification URI of the webhook.

    Returns undefined | string

    The URI where notifications are sent, or undefined if the model is null.

  • Returns the signature header of the webhook.

    Returns undefined | string

    The signature header which will be set on the callback requests, or undefined if the model is null.

  • Returns a String representation of the Webhook.

    Returns string

    A String representation of the Webhook.

  • Updates the webhook with a new notification URI, and optionally a new list of addresses to monitor.

    Parameters

    Returns Promise<Webhook>

    A promise that resolves to the updated Webhook object.

  • Returns a new Webhook object. Do not use this method directly. Instead, Webhook.create(...)

    Parameters

    • model: Webhook

      The underlying Webhook model object

    Returns Webhook

    A Webhook object.

    Constructs

    Webhook