npm

@plasma-platform/tm-service-notifications

1.1.0 • Public • Published

Documentation

Table of Contents

NotificationsService

messages

object with class service messages

getResourceToken

Subscription - Get system centrifugo token based on resource id

Parameters

  • params Object
    • params.resourceId string Resource ID (orderId for example) (required)
    • params.timestamp number UNIX Timestamp (required)

Examples

Get membership plan info by ID

(async () => {
  const service = new NotificationsService(url);
  const response = await service.getResourceToken(params);
})();

Returns Promise<Object> Promise object represents info

Package Sidebar

Install

npm i @plasma-platform/tm-service-notifications

Weekly Downloads

1

Version

1.1.0

License

CC-BY-4.0

Unpacked Size

1.57 MB

Total Files

35

Last publish

Collaborators

  • alienmonster
  • ch-tm
  • viram