MSG91 / sendotp-node

38 stars 24 forks source link

Not working in AWS Lambda function #30

Open nirvish123 opened 4 years ago

nirvish123 commented 4 years ago

This below code works in NodeJS Express framework but when I deployed same code in AWS Lambda function it didn't work. Here's my demo code.

BEGIN

const SendOtp = require('sendotp'); const objSendOtp = new SendOtp('');

objSendOtp.send(, , , function(err, data){ if(err) console.log(err); else console.log(data); });

END