Node.js Express Project to Send OTP SMS Messages to Mobile Number Using Fast2SMS API in Javascript
HTML-код
- Опубликовано: 24 янв 2022
- Buy the full source code of the application at Paypal in USD Currency here:
procodestore.com/index.php/pr...
#fast2sms #nodejs #express
Visit my Online Free Media Tool Website
freemediatools.com/
Buy Premium Scripts and Apps Here:
procodestore.com/
Welcome Folks My name is Gautam and Welcome to Coding Shiksha a Place for All Programmers. You can learn Web Development and Programming Tutorials.
Donate to Our RUclips Channel at :
www.instamojo.com/@geekygauta...
Subscribe for more Videos: / @codingshiksha
Watch next -
[Popular Videos on the Channel]
[Login with Google Account using Javascript]
• Login With Google Acco...
[What is AJAX and How it Works | Short Tutorial for Beginners]
• What is AJAX and How i...
[Javascript Fetch Api Example]
• Javascript Fetch Api E...
[jsPDF Tutorial | PDF Library in Javascript]
• jspdf tutorial
[RUclips Data API V3 App in 1 Hour]
• RUclips Data v3 API Ap...
[AngularJS CRUD Application]
• AngularJS CRUD Applica...
[Uploading Files using Google Drive Api]
• Google Drive API V3 - ...
Recommended Playlist -
[Build a CRUD Applicaiton in VUE and Firebase]
• Build a CRUD Applicati...
[MongoDB Tutorial for Absolute Beginners]
• Video
[Building a Playlist Search App using RUclips Data Api v3]
• Video
[Secure Login System in PHP & MYSQL]
• How to make a login/re...
[Real Time Chatting App in Socket.io and Express]
• socket.io chat app usi...
In every video, you explain in a good manner taking real-time examples showing us. How to integrate packages and other stuff. It's really helpful sir.. Thank you sir for teaching us with the real-time scenarios...
Thanks for asking please join facebook group of coding shiksha to ask questions: facebook.com/groups/544305447024848
Thank you for this very useful video!
I really like your simplicity in everything such explaining and the camera you're using, I hope that you success in everything in your life, Thanks a lot man for your videos
Thanks for asking please join facebook group of coding shiksha to ask questions: facebook.com/groups/544305447024848
bro this is like my first comment ever in RUclips heartful thanx man
Thanks for asking please join facebook group of coding shiksha to ask questions: facebook.com/groups/544305447024848
You are explaning really nice. why don't you create porper full video of authentication using numner and may be create a signup if login success and all
greate tutorial
Unable to send message. Whenever I run the sendMessage function its returns the value as undefined instead of 'Message Sent Successfully'. A few months ago the same code was working when i was using it for a different project. but now the same code is throwing error. i've followed every step of yours and my code is literally same as yours.
Hey! can you help me?....I can't get the sms...but on the cmd it's saying as "Message sent Successfully".
@@maheshsoni6975 that's because you will have to add 100 rs balance first to your fast 2 sms account to start using the service.
@@prathamrajgor but in this video....he didn't mention about adding of 100 rs.
Oh you are right bro thanks 😊
Hi Please checkout my Coding Shiksha Android Play Store please check out my apps published and install the apps and give some feedback if it's great here is the link for my google play developer page: bit.ly/3YIVgQP
Hi bro I want to ask that passing message inside option variable it is approved by dlt platform.
Hi Join the official discord server to resolve doubts here: discord.gg/cRnjhk6nzW
It is asking us to pay 1st. Is it ?
not work properly ... promise in pending state even use .then async/await .promise()
Sir I caught an Error in this code
please solve it
error is :-
Type error : Cannot read properties of undefined (reading’join’)
Hi Join the official discord server to resolve doubts here: discord.gg/cRnjhk6nzW
can anyone help me my code is same as in video but on console its empty not showing response and even SMS
same
how can i find the source code? on which website? i didn't find any source code on webNinja website... pls suggest
Hi Join the official discord server to resolve doubts here: discord.gg/cRnjhk6nzW
I can use in Europe?
I can change the user id (the sender id)?
Yes you can after doing the DLT registration process
TypeError: Cannot read properties of undefined (reading 'data') getting this anyone has any words for this
I am getting the same error and after some time of doing the same thing the error got vanished
sir i am not getting any responce for wrong number i am getting error
Hi Join the official discord server to resolve doubts here: discord.gg/cRnjhk6nzW
When I run as " node index.js" It's saying "undefined" then "message sent successfully" but didn't get message on my phone. Pls help me sir 5:02
I am also get like that only...
@@arun7451 try our API
@@arun7451 You'll have to add 100 rs or more to start the service
Hi Please checkout my Coding Shiksha Android Play Store please check out my apps published and install the apps and give some feedback if it's great here is the link for my google play developer page: bit.ly/3YIVgQP
Hi shiska, what your current job now??
Thanks for asking please join facebook group of coding shiksha to ask questions: facebook.com/groups/544305447024848
You looks like Stephen Hawking
50001 rupees for source code are u serious
bro you are selling code or gold?
Works only in India..
Hi Join the official discord server to resolve doubts here: discord.gg/cRnjhk6nzW
really liked your videos but as doing like your instruction response did not came and no error is showing
please help
app.post('/otp/register',asyncHandler(async(req,res)=>{
console.log('Enter details for registration ',req.body)
const {first_name,last_name,dob,email,address,gender,password,phoneno} = req.body ;
//console.log('')
if(!first_name||!last_name||!dob||!email||!address||!gender||!password||!phoneno){
res.status(401);
throw new Error("All fields are mandatory")
}
const hashedPassword = await bcrypt.hash(password,10);
console.log('hashed password',hashedPassword);
const data = await User.create({first_name,last_name,dob,email,address,gender,password:hashedPassword,phoneno});
console.log('data available :',data); // checking
if(!data){
res.status(400);
throw new Error("User id is not valid");
}
else{
res.status(200).json({data})
}
const otp = otpGenerator.generate(6, { upperCaseAlphabets: false, specialChars: false ,lowerCaseAlphabets:false});
console.log("OTP : ",otp);
// sending OTP via SMS
var options = {authorization : process.env.YOUR_API_KEY ,
message : 'OTP message 9211 ',//`OTP${otp}` ,
numbers : ['9120689486']
}
// promise will generate which will send object in options at the time of
fast2sms.sendMessage(options)
.then(response=>{
console.log('response ',response)
})
.catch((error)=>{
console.log('Error : ',error)
})
//res.status(200).json({data})
}))
waiting for your response
Message me on my whatsapp +91 9821254649
I'm in same type of situation. Do you solve it ? please reply