How to Send and Receive Text Messages Using Node.js

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 41

  • @PyroPiwi
    @PyroPiwi 7 років тому +7

    Great material. Nice and concise, and not too slow! Waiting for a lot more of these

  • @haroonificationabify
    @haroonificationabify 6 років тому +7

    "Robots are coming! Head for the hills!" :D
    That cracked me up :"D

  • @WeTheExplorers
    @WeTheExplorers 3 роки тому +1

    I have not yet seen a Twilio tutorial that shows this working outside a local environment. I honestly cannot tell if I need to install node.js on the server or not. I assume no. But I've been told to upload everything. And everything included the node_modules and git files. Uploading the git files makes no sense, but uploading the node_modules suggests I need to install node.js on the server.

  • @nasirrahimi8962
    @nasirrahimi8962 4 роки тому +1

    Wow!!!
    Twilio is amazing!

  • @nickwoodward819
    @nickwoodward819 3 роки тому

    Great guide, thanks.
    Have noticed though that this and the tutorial on your site mention receiving messages, but don't show how to access them (only how to send a stock response).

    • @twilio
      @twilio  3 роки тому +1

      www.twilio.com/docs/sms/tutorials/how-to-retrieve-and-modify-message-history-node-js

    • @nickwoodward819
      @nickwoodward819 3 роки тому

      @@twilio Thanks!

  • @madhawasumanarathna4925
    @madhawasumanarathna4925 Рік тому

    @twilio, How to add mask to twilio phone number?

  • @fakhriakbar5363
    @fakhriakbar5363 2 роки тому

    hi.. question, I have been to followed the tutorial, but stil get error "url.URL is not a constructor". help me to solve it. thanks :)

  • @gamershere4531
    @gamershere4531 3 роки тому

    Thanks Twilio.

  • @jason_m2003
    @jason_m2003 3 роки тому

    is there a way to pull the sender's Number & message out of the request? req.Message or req.phoneNumber ?

    • @twilio
      @twilio  3 роки тому

      Yes both come on as parameters from Twilio. The message is there as Body and the from phone number is From.

  • @gursimran9825
    @gursimran9825 3 роки тому

    How can I make video chat website using node.js and twillo?

  • @amir7101
    @amir7101 6 років тому +1

    when i run the code on cmd it gives me this error ("throw new Error('username is required');")
    Please give me a solution.

    • @twilio
      @twilio  6 років тому +1

      The "username is required" error means that you have not passed an AccountSid in the line: const client = require('twilio')(accountSid, authToken);
      You can retrieve your AccountSid and AuthToken from twilio.com/console and then make sure to pass those in (preferably set in an environment variable).

    • @vinayyadav-el9go
      @vinayyadav-el9go 5 років тому

      @@twilio hello sir i have use this const client = require('twilio')(accountSid, authToken); line but i have same username error problem..

    • @merlejansen2656
      @merlejansen2656 5 років тому

      I had to add in the beginning of the code to get it working :
      require ('dotenv').load ();

  • @khushbookabra1354
    @khushbookabra1354 4 роки тому

    Ngrok link shows error....l tried various times.....please help me....plzzz🙏🙏🙏

    • @shubhammetkar6021
      @shubhammetkar6021 3 роки тому +1

      Can you share the error, many a times ngrok tunnel expires... you should first do node server.js then once on local server 1337 port its running then make it ngrok link as said in video and in twilio-whatapp dashboard put that url in webhook with /sms at the the end. Hope it helps :)

  • @jeremiedaniel7966
    @jeremiedaniel7966 6 років тому

    HELP !!!
    When i click on buy it tells me "Upgrade required to purchase number"

    • @arjunbedi5759
      @arjunbedi5759 3 роки тому +1

      im 2 years late but depending on your account you can only have a limited amount of numbers so you might want to upgrade

  • @musubi_i
    @musubi_i 6 років тому

    after i paste the url from ngrok and send a reply to the text im getting a 502 bad gateway reponse

  • @cinnamonroll8165
    @cinnamonroll8165 4 роки тому

    im trying to send a message to my friend from my number but it doesnt work

    • @twilio
      @twilio  4 роки тому

      If you are using a trial account you can only send to the phone number you verified on the account. You’ll need to upgrade the account to send to others.

    • @sunilkumar-fv9fl
      @sunilkumar-fv9fl 4 роки тому

      @@twilio i upgrade still it's not possible to send other number

  • @palakondarayuduuppu6420
    @palakondarayuduuppu6420 6 років тому

    great but problem with India. No Indian numbers. and I am not able to send any message but I can receive messages to phone.

  • @ducskt1806
    @ducskt1806 5 років тому

    How to change the SMS header (friendly name)

    • @twilio
      @twilio  5 років тому

      If you mean what I think you mean, this should help: support.twilio.com/hc/en-us/articles/223181348-Getting-Started-with-Alphanumeric-Sender-ID-for-Twilio-Programmable-SMS

    • @khushbookabra1354
      @khushbookabra1354 4 роки тому

      @@twilio please help me....ngrok( webhook) shows error.....i tried various time🙏🙏🙏

  • @ajaib1313
    @ajaib1313 4 роки тому

    nice

  • @justaninja1
    @justaninja1 4 роки тому

    Dude, what kind of a BS is this? I'm not a coder and that's not my job to code your stuff; that's YOUR job to code this on YOUR site so when I choose the forwarded option and save it, it's done with a few clicks on your website, which is way to complicated by the way. Menus appear and disappear, it's pretty hard to find the studio and even though I have set up the flows, it's still not forwarding.
    On top of that your customer service response time is over 48 hours.

    • @asyncdef2413
      @asyncdef2413 3 роки тому +1

      maybe you should hire a coder then

    • @chrisstromberg6527
      @chrisstromberg6527 10 місяців тому

      This is an API, you are suppose to hook your code up to their code.