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...

Комментарии • 47

  • @mohammedabdulaziz3658
    @mohammedabdulaziz3658 2 года назад +1

    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...

    • @CodingShiksha
      @CodingShiksha  2 года назад

      Thanks for asking please join facebook group of coding shiksha to ask questions: facebook.com/groups/544305447024848

  • @higiniofuentes2551
    @higiniofuentes2551 Год назад

    Thank you for this very useful video!

  • @MahmoudYhya
    @MahmoudYhya 2 года назад

    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

    • @CodingShiksha
      @CodingShiksha  2 года назад

      Thanks for asking please join facebook group of coding shiksha to ask questions: facebook.com/groups/544305447024848

  • @rahulnellepalli8406
    @rahulnellepalli8406 2 года назад

    bro this is like my first comment ever in RUclips heartful thanx man

    • @CodingShiksha
      @CodingShiksha  2 года назад

      Thanks for asking please join facebook group of coding shiksha to ask questions: facebook.com/groups/544305447024848

  • @shubhamjaiswal5077
    @shubhamjaiswal5077 8 месяцев назад

    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

  • @lonewaters
    @lonewaters 10 месяцев назад

    greate tutorial

  • @prathamrajgor
    @prathamrajgor 2 года назад +5

    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.

    • @maheshsoni6975
      @maheshsoni6975 Год назад

      Hey! can you help me?....I can't get the sms...but on the cmd it's saying as "Message sent Successfully".

    • @prathamrajgor
      @prathamrajgor Год назад

      @@maheshsoni6975 that's because you will have to add 100 rs balance first to your fast 2 sms account to start using the service.

    • @maheshsoni6975
      @maheshsoni6975 Год назад

      @@prathamrajgor but in this video....he didn't mention about adding of 100 rs.

    • @maheshsoni6975
      @maheshsoni6975 Год назад

      Oh you are right bro thanks 😊

    • @CodingShiksha
      @CodingShiksha  Год назад

      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

  • @aakashverma6406
    @aakashverma6406 Год назад +1

    Hi bro I want to ask that passing message inside option variable it is approved by dlt platform.

    • @CodingShiksha
      @CodingShiksha  Год назад

      Hi Join the official discord server to resolve doubts here: discord.gg/cRnjhk6nzW

  • @pralanvideos9631
    @pralanvideos9631 7 месяцев назад

    It is asking us to pay 1st. Is it ?

  • @yogeshpatil9642
    @yogeshpatil9642 Год назад

    not work properly ... promise in pending state even use .then async/await .promise()

  • @kumarhemant7709
    @kumarhemant7709 Год назад +1

    Sir I caught an Error in this code
    please solve it
    error is :-
    Type error : Cannot read properties of undefined (reading’join’)

    • @CodingShiksha
      @CodingShiksha  Год назад

      Hi Join the official discord server to resolve doubts here: discord.gg/cRnjhk6nzW

  • @AJAYTHAKUR-bu6nz
    @AJAYTHAKUR-bu6nz 29 дней назад

    can anyone help me my code is same as in video but on console its empty not showing response and even SMS

  • @rajeshsukheja4802
    @rajeshsukheja4802 Год назад

    how can i find the source code? on which website? i didn't find any source code on webNinja website... pls suggest

    • @CodingShiksha
      @CodingShiksha  Год назад

      Hi Join the official discord server to resolve doubts here: discord.gg/cRnjhk6nzW

  • @higiniofuentes2551
    @higiniofuentes2551 Год назад

    I can use in Europe?
    I can change the user id (the sender id)?

    • @lordesca4364
      @lordesca4364 6 месяцев назад

      Yes you can after doing the DLT registration process

  • @Only_Coders
    @Only_Coders 9 месяцев назад

    TypeError: Cannot read properties of undefined (reading 'data') getting this anyone has any words for this

    • @lordesca4364
      @lordesca4364 6 месяцев назад

      I am getting the same error and after some time of doing the same thing the error got vanished

  • @prasanthdadi2764
    @prasanthdadi2764 Год назад

    sir i am not getting any responce for wrong number i am getting error

    • @CodingShiksha
      @CodingShiksha  Год назад

      Hi Join the official discord server to resolve doubts here: discord.gg/cRnjhk6nzW

  • @maheshsoni6975
    @maheshsoni6975 Год назад +2

    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

    • @arun7451
      @arun7451 Год назад

      I am also get like that only...

    • @aafan.kuware
      @aafan.kuware Год назад

      @@arun7451 try our API

    • @maheshsoni6975
      @maheshsoni6975 Год назад

      @@arun7451 You'll have to add 100 rs or more to start the service

    • @CodingShiksha
      @CodingShiksha  Год назад

      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

  • @cubedev4838
    @cubedev4838 2 года назад

    Hi shiska, what your current job now??

    • @CodingShiksha
      @CodingShiksha  2 года назад +1

      Thanks for asking please join facebook group of coding shiksha to ask questions: facebook.com/groups/544305447024848

  • @kingfisher7348
    @kingfisher7348 Год назад

    You looks like Stephen Hawking

  • @shobitgupta1683
    @shobitgupta1683 2 месяца назад +1

    50001 rupees for source code are u serious
    bro you are selling code or gold?

  • @omanjabbar200
    @omanjabbar200 Год назад +1

    Works only in India..

    • @CodingShiksha
      @CodingShiksha  Год назад

      Hi Join the official discord server to resolve doubts here: discord.gg/cRnjhk6nzW

  • @nikhiltiwari7936
    @nikhiltiwari7936 Год назад +1

    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

    • @CodingShiksha
      @CodingShiksha  Год назад

      Message me on my whatsapp +91 9821254649

    • @abhisekadhikari2774
      @abhisekadhikari2774 5 месяцев назад

      I'm in same type of situation. Do you solve it ? please reply