question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BETA] "to" and "from" params are in different order between SMS and Messages

See original GitHub issue

Send a text message

nexmo.message.sendSms(sender, recipient, message, options, callback);

Send a Messages API message

function send(to, from, message, callback)

As they are not named parameters then it’s easy to get mixed up. Should we swap then? Will it cause a lot of pain for exiting users.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
mheapcommented, Jul 24, 2020

Yep. I’m assuming there will be a beta messages module for v3 and we could make the change there

0reactions
manchuckcommented, Nov 22, 2022

@fauna5 Version 3 of the SDK was deployed, and sending an SMS now requires an SMS Parameters object to be passed instead. You can install @vonage/sms or update the latest SDK to try it out. FYI that V3 of the SDK is all async now, so the uplift might be a lot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Message Scheduling FAQs and Limitations - Twilio Support
This feature enables you to schedule an SMS, MMS or WhatsApp message for a fixed time in the future. Scheduling a message is...
Read more >
Send API - Messenger Platform - Meta for Developers
The Send API is the main API used to send messages to users, ... Cannot be sent with the message parameter but must...
Read more >
API SMS Messaging - MessageBird | Developers
MessageBird's SMS API allows you to send and receive SMS messages to and from any country in the world through a REST API....
Read more >
SMS Tracking Notifications - ShipStation Help
The SMS tracking notification feature is currently in Beta. ... your customers receive tracking updates for their orders as text messages.
Read more >
How to Send and Receive SMS Messages With Node.js and ...
It is a multi-channel API that can send a message via different channels, such as SMS, Facebook Messenger, Viber, and WhatsApp.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found