nexmo-se / Vonage-SMS-API-Blueprint

MIT License
3 stars 5 forks source link

server.js doesn't work #3

Open gcp91020 opened 2 years ago

gcp91020 commented 2 years ago

line 218: text: data.message.content.text, should be: text: data.text, there is no message in the body

line 210: id: data.from.number, should be: id: data.from, data.from.number is null, so will post to Genesys with "", and Genesys respond 400 with an empty id.

KittPhi commented 2 years ago

Hello, Thank you for making us aware of the issue. This repo was working for Vonage Messages V0. Vonage recently came out with some breaking changes with their V1 Messages release. I've updated/merged changes for the Vonage code, including the Vonage SDK in the package.json to work with the new SDK. Please clone the repo and give it another try. Thank you.