NTM is a set of shared services that are created to establish communication among different apps within the Digital Solutions Ecosystem. NTM follows a publisher-subscriber model where an app can publish an event/notification and a different app/user, interested in these messages can subscribe to them. The publishers publish notification to a channel/topic in NTM.
For e,g. Youtube enables Content Creators to publish their content via channels. All interested subscribers, subscribe to these channels and are notified everytime a new content is posted by the channel owner.
Below steps need to be followed for becoming publisher/subscriber.
Create an SAuth client identity under: Developer Portal → My Apps → development-team → app → Clients
- Client Type: Web Server Application
Use the client identity, client secret, grant type, and NTM master client identity(ntm-master-svc-ntm.slbservice.com) as scope to generate CCG token.
- Refer this Tutorial on CCG Token
If you would like to be a Publisher, create a channel with NTM. Refer this Tutorial on Channel Service
- Publish a message to your own channel. Refer this Tutorial on Message Service
If you would like to be a subscriber to a channel, create a subscription. Refer this Tutorial on Subscribe Service
- If you would like to listen to your own channel, create a self-subscription.
- All subscribers need to whitelist NTM client identity to receive publisher's notifications.