Notifier

Notifier is a basic SDK for accessing the Eluvio Notification Service

Constructor

new Notifier({notifUrl})Notifier

Instantiate the notifier SDK

Returns: New Notifier object connected to the specified endpoint
Parameters:
Name Type Description
notifUrl string

The notification service endpoint (optional)

Source:

Methods

async Post({
path,
bodyoptional
})
→ Promise.<Object>

Post a notification

Returns:

Response from the notification endpoint

Parameters:
Name Type Attributes Description
path string

Request path relative to the notification service URL

body Object <optional>

Request body; defaults to an empty object if omitted

Source: