CloudWebhook

A webhook class that can receive incoming messages

Table of Contents

Methods

(async) unregister() → {Promise.<any>}

Unregister the webhook. This is a shortcut for ManagerCloud#unregisterWebhook

Returns:
Type:
Promise.<any>

Events

.on('message')

This event is fired when a webhook message has been received.

Parameters:
Name Type Description
args object
Name Type Description
headers object

Received HTTP headers

query object

Received HTTP query string

body object

Received HTTP body