@plasma-platform/tm-service-notifications

Service Notifications Api

Usage no npm install needed!

<script type="module">
  import plasmaPlatformTmServiceNotifications from 'https://cdn.skypack.dev/@plasma-platform/tm-service-notifications';
</script>

README

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