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('<API_SECRET>');
objSendOtp.send(, , , function(err, data){
if(err) console.log(err);
else
console.log(data);
});
*** END ***
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('<API_SECRET>');
objSendOtp.send(, , , function(err, data){
if(err) console.log(err);
else
console.log(data);
});
*** END ***