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 | Required | Description |
|---|---|---|---|
notifUrl | string | ✓ | The notification service endpoint (optional) |
Post
Post({
path,
body // optional
}) → Promise.<Object>
path,
body // optional
}) → Promise.<Object>
Post a notification
Returns: Response from the notification endpoint
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
path | string | ✓ | Request path relative to the notification service URL |
body | Object | Request body; defaults to an empty object if omitted |