Created
September 16, 2019 11:21
-
-
Save AlexLakatos/d32b1d895d039f6803f142f808575951 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let text = "👋Hello from Nexmo"; | |
nexmo.channel.send( | |
{ "type": "sms", "number": "TO_NUMBER" }, | |
{ "type": "sms", "number": "Nexmo" }, | |
{ | |
"content": { | |
"type": "text", | |
"text": text | |
} | |
}, | |
(err, responseData) => { | |
if (err) { | |
console.log("Message failed with error:", err); | |
} else { | |
console.log(`Message ${responseData.message_uuid} sent successfully.`); | |
} | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment