![]() ![]() You can do that here.Īlso, make sure you enable geo-location messaging on Twilio for the region the receiver of your text is because it can also be a source of errors. To: This is the number the text is sent to, make sure the number is verified by Twilio to avoid errors. There are some important properties here you should take note of.īody: This is the content of the message.įrom: The value of this property is the phone number provided by Twilio, this is the sender of the text. The messages.create() method is provided by the Twilio library, which is used to create the message sent. The account_sid and auth_token is provided by Twilio when you signup, copy and paste them here. The Twilio module connects the app to your Twilio account.In the preceding code, the Twilio API is used to send a message to the mobile number. To: '+13072205075' // use your phone number or receiver number Now inside index.js add the following code const client = require('twilio')('account_sid', 'auth_token') īody: 'This is message is sent from a node app',įrom:'+16014882966', // use your twilio number here ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |