NotificationRouterServer

NotificationRouterServer

Facilitates interaction with a NotificationRouter server instance.

Constructor

new NotificationRouterServer(sdk, serverUrl, opts)

Create a new NotificationRouter instance.

Source:
Parameters:
Name Type Description
sdk ShelfNetwork

Parent SDK instance.

serverUrl string

NotificationRouter URL.

opts Object
Name Type Attributes Description
allowHttp boolean <optional>

Allow connecting to http servers, default: false. This must be set to false in production deployments!

proxy Object <optional>

Proxy configuration. Look axios docs for more info

httpBasicAuth Object <optional>

HTTP basic auth credentials. Look axios docs for more info.

customHeaders Object <optional>

Custom headers for request.

Classes

NotificationRouterServer

Methods

sendNotification(opts) → {JsonApiResponse}

SendNotification

Source:
Parameters:
Name Type Description
opts Object
Name Type Attributes Description
subject String <optional>

Requestor subject, required for non-authorized

replyTo String <optional>

Requestor replyto

data String <optional>

Requestor data, required for non-authorized

lotId String <optional>

Requestor lotId

accountId Array.<String> <optional>

Requestor accountId, required for non-authorized

sharedUrlList Array.<object> <optional>

Requestor sharedUrlList

Name Type Attributes Description
id String <optional>

Requestor id

attachedAt String <optional>

Requestor attachedat

contentType String <optional>

Requestor contenttype

originalFileName String <optional>

Requestor originalfilename

url String <optional>

Requestor url

Returns:
Type:
JsonApiResponse