7

Using Plivo APIs For Sending SMS messages With Node.js

 3 years ago
source link: https://hackernoon.com/using-plivo-apis-for-sending-sms-messages-with-nodejs-eul33u5
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Send an SMS message

In this section, we'll send an SMS message with GSM characters, Unicode characters, and emojis, and a multipart message in the text body.

0 reactions

Send an SMS message with GSM characters

0 reactions

Now you’re ready to start. Create a file called sendSms.js and paste in this code:

0 reactions
const plivo = require('plivo');
const client = new plivo.Client('<auth_id>','<auth_token>');

client.messages.create(
  '+14156667777',
  '+14156667778',
  'Hello, world!'
).then(function(message_created) {
  console.log(message_created)
});

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK