Walkthrough
This block sends SMS notifications to offline users.
A message is sent targeting a user's uuid. The block then checks PubNub presence to see if that user is online. If the user is online, the message is sent over PubNub so that the target user can receive it.
If the user is not online, the event handler uses the phone number of the offline user and sends the message over SMS using RingCentral's API. Visit https://developer.ringcentral.com/ to get your credentials for RingCentral API.
Input
Publish a message over the input channel. Input Channel: notifier-channel