Viber Requirements
- A Viber bot account. Make a note of the auth token.
- An active webhooks server that can receive POST requests from Viber. Viber provides a nodejs utility for handling these requests.
- The recipient must have an active Viber account logged into either the iOS or Android app.
Webhooks Server
Before sending notifications Viber requires a webhooks server to be registered. This can be done using the following cURL command:Sending a Direct Message
To send a direct message to a user, supply the ViberUserID to the viber.receiver property of the recipient profile. This UserID is sent to the webhooks server after they send a message to the Viber bot.