kopi-kosong
kopi-kosong
Here is my source: /*require('dotenv').config({path: __dirname + '/../.env'})*/ const Nexmo = require('nexmo'); const nexmo = new Nexmo({ apiKey: '267a8d9f', apiSecret: 'D9Qxqddp2fdBprAt', applicationId: 'ea92b0c9-b1c4-42f9-a37b-3c39fdacb2e9', privateKey: 'C:/george/12.Apps/keys/nexmo/whatsapp_key/private.key' }); const message = {...
Sorry, Alex, Shall I try to log error with "console.log(err.invalid_parameters[0]);"? This line gave me another error: console.log(err.invalid_parameters[0]); ^ TypeError: Cannot read property '0' of undefined at C:\george\12.Apps\sendNexmoSMS\sendWhatapp.js:34:37 at HttpClient.__parseResponse (C:\george\12.Apps\sendNexmoSMS\node_modules\nexmo\lib\HttpClient.js:232:9)...
Hi, Did you manage to find out why? I had the same issue.