Skip to main content

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

NameTypeRequiredDescription
notifUrlstring

The notification service endpoint (optional)

Post

Post({
  path,
  body // optional
}) → Promise.<Object>

Post a notification

Returns: Response from the notification endpoint

Parameters

NameTypeRequiredDescription
pathstring

Request path relative to the notification service URL

bodyObject

Request body; defaults to an empty object if omitted