Inspiration
To learn about Twilio and its Features, Functions, and API.
What it does
With just a few lines of code, it makes it easy and free to send a text message anywhere worldwide from sender to receiver through Twilio's API.
How we built it
Steps:
- Sign up for Twilio and get your first SMS-enabled Twilio phone number
- Set up your development environment to send and receive messages
- Install node.js
- Install the Twilio Node helper library using npm: npm install twilio
- Use the Sample code and make any fileName.js
- Swap the placeholder values for accountSid and authToken with your personal Twilio credentials.
- Go to https://www.twilio.com/console and log in. On this page, you’ll find your unique Account SID and Auth Token, which you’ll need any time you send messages through the Twilio client like this.
- Replace the "from" phone number to your SMS-enabled phone number you bought on Twilio.
- Replace the "to" phone number to any phone number that can receive text messages.
- Save your changes and run this script from your terminal: node filename.js That's it! In a few moments, you should receive an SMS from your Twilio number on your phone.
What we learned
Twilio's API's, features , functions and using it's online deployable code editor.
What's next for Twilio-API Message Sender
Making automatic replies by leveraging Twilio's functions and API's.
Built With
- api
- git
- javascript
- node.js
- terminal
- twilio
- vscode
Log in or sign up for Devpost to join the conversation.