/plushcap/analysis/vonage/vonage-send-a-viber-message-with-node-dr

How to Send a Viber Message with Node.js

What's this blog post about?

You can add Viber communication to your Node.js app by setting up a Vonage API account and using their sandbox service, which allows you to send messages without a business profile. To start, create an axios client and provide the necessary data, including username and password, from ID, and to number. Then, make a POST request to the Messages API with the data object and options object for authentication. The response will include a message UUID, which can be logged to the console. Once set up, you can run your code by executing node app.js, and receive your test message in Viber on the whitelisted device.

Company
Vonage

Date published
April 29, 2021

Author(s)
Garann Means

Word count
763

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.