Spring Boot: How to send sms using Twilio API (2019)
ฝัง
- เผยแพร่เมื่อ 5 ส.ค. 2024
- Twilio allows developers write backend apps that can send sms's to phone numbers.
In this video you will learn how to write a server side application where you will expose a REST endpoint that allows clients to send sms by providing the destination number as well as the message 😱
At the end of this video you will learn the necessary steps to configure the auth token provided by Twilio and use Spring Boot properties to initialise Twilio API. You will write a service that integrates Twilio API allowing you as a software engineer to be able to send sms's from your backend apps.
Source Code available here 👉🏽 github.com/amigoscode/springb...
PS: Don't forget to subscribe
Follow me on:
▶️Instagram: amigoscode
I love tutorials from this channel , they are very clear for every single step
A thorough walk-through...lovely, event though my skill sets are still low, I was able to grasp some coupla things
Idnfj
Decided to take a look at Twilio during these lockdown times and came across your tutorial.
Really awesome. 🤗
Got it working here 👍
Thanks ☺️
Thanks so much for the detailed explanation.
This is helpful!!!!!!!!!!!!!!
Warm greetings from Armenia. You explain very well. Thank you for taking so much time to teach us
Thanks you, this was so helpful
Great job buddy. Learnt a lot through this!
Thanks Aniket
Amazing demonstration 👏🏽👏🏽👏🏽
Thank you so much for this video.
Thanks Balde :)
@@amigoscode Can I retain your services for a project? Please reach out. Thanks
Greta tutorial, if you love shortcut keys you can switch between apps by pressing alt then tab, continue tapping tab to go though available tabs
thx
Way too OP demostration 👏🏽👏🏽👏🏽👏🏽 #RESPECT
Gracias Cesar
Sensational! Thank you
Incredible! Thank you
Great explanation and high quality writing skills.
Thank you!
The best account to follow for Java.
Hi AmigosCode, I admit; God sent you for such a time as this. I have been out and about texting from Spring Boot project. I have seen MANY of your videos (esp Spring Security, my de facto), and now I'll tell you what's up.
So I got this new job - I am on probation and the onboarding flow (which follows after Bolt onboarding process) requires that
a user enters a phone number,
an OTP is sent to that phone number,
the user enters that number (if autofill can work, perfect)
and then if the number does not exist in the db, then the remaining onboarding process follows,
else if the number exists, then the user is led to the dashboard
That is pretty much the flow. I am looking at a number of works and lessons
But Amigos, if you could do a tutorial like this around this flow (rest API), you would save me and keep me at this role longer than I ever thought.
Please consider this and consider doing a tutorial for us (someone else would surely need it)
Thank you
thank you for this amazing video it's help alot .
can u make us a video for send Sms compaign
awesome lecture
amazing tutorial :)))
Teacher! I didn't see Spring class with images, audio and video with Spring. Any solution? Curious here on how to implement this in Java Android for MySql and later in Angular
Hi Thanks for uploading such nice tutorial and save our time. Would love to see if you perform twillio video and voice api too in spring boot
Yes coming soon
thank you bro
Very cool, thx
Amazing! I also want you to teach us how to call using Twilio API using TwiML! That would be awesome!
Nithin Prasad sure
Thank you very much for this detailed tuturial
but i have a question please, is there any way to send sms to a list of real phone numbers , or i have to validate each number of them thank you very much
hey amigo i need a video on how to implement twilio push notification using React Native and Spring Boot
Very cool!!!! How about sending to multiple phone numbers?
Can you explain me how i can use application.properties instead of yml?
hey dude..can we have one demo video for PUSH notification through twilio please
Thanks bro!!!!
You welcome
made a company project out of this... thank you
Haha awesome
@@amigoscodehow can i make it an automated system to send client balance for an account?
hello, your video is so good it worked for me but one more thing i need from you? can you show us how to change the "from " caller ID or Message Id. so that when you send a message to someone they see your company name instead of a number.
Maybe worth looking at the docs here www.twilio.com/docs/voice/api/outgoing-caller-ids
Great!
Thanks
Thanks bro
Hi, any plans to create a tutorial for sending email using twilio sendgrid in java?
Woow!! That was great. Thank you. I still have a question, though. I want my clients to receive my message showing my service name on their screen not the phone number. How would I do that?
here: support.twilio.com/hc/en-us/articles/223133967-Change-the-From-number-or-Sender-ID-for-Sending-SMS-Messages
Awesome explanation, i just have one doubt, is there any expiry time for free account?
thanks
Great tutorial. How can we send SMS without using Twilio API?
hi, please make a video on twilio's voice call integration with spring boot
Is there any thing just like this to directly send sms to the twilio number and respond to that from our boot app ?
Hello. I have problem I am getting warning in application.properties file saying twilio is an unknown property.
I added all the dependencies of twilio after that also
very nice
How to sent an otp and verify the otp in our web application ??
Hi
Could you make one tutorial for how to track status of sms using setStatusCallback in Twilio
bro please make a ecommerce or other real world project tutorial in spring boot
I FUCKING LOVE YOU BRO
You don't need to add @Autowired annonation if you are using constructor
hallo, can you give me a suggestion how to send OTP SMS with firebase in spring boot ? thank you
Will this api support for group chat API
Hi
Thank you for this tutorial.
Can you please tell me how I send a message to many numbers?
look through an array of numbers and use the send method
Help!!! After I created the new java class, I was not able to annotate because there was no @Configuration selection in the pop up window
What IDE are you using ?
Same for me and im using intelij
How can I unit test this ? How I can mock verification create method and before that How I can mock init method
how if I want to ignore the heading COME FROM YOU TWILIO ACCOUNT?
Could you please make telegram bot with calls on java tutorial?
hlo, would you pls help me with, sending sms using bulk sms api?
how do you mirror the iphone screen on mac?
with Quick Time Player
i am using ECLIPSE Oxygen and everything is working fine but when i'm trying to send message through POSTMAN it is giving me -500 Internal server error.
500 status code indicates something went wrong after the request been sent. Check the logic of your service and that you can connect to Twilio correctly.
i follow all steps but i got an error unauthorized
nice i try similar java app with twilio
awesome. let me know how it goes
Can you send me the java code please
Thanks for this, please how can integrate with my android application i am new please
android just needs to call the API
Hey at 17:01 i cant find all the loggers you have i can only find 2 basic
I think you are using a new version of Spring Boot. You need to enable logging
great tuto but ihave this error: "timestamp": "2020-12-12T00:55:47.459+00:00",
"status": 500,
"error": "Internal Server Error",
"message": "",
"path": "/api/v1/sms/"
Good morning sir, How can we send multiple sms using spring boot?
Hi,
i am tring your code it's not comming any errors but message not received my phone .
can i help me.
Can you check on twilio website. if not share the code on Github
Is Twilio provides free SMS? can some help me.
Hi! Im having HTTP Status 404- Not Found error, how can i fix that ?
Did you restart the server after making the changes?
Great...i need help in this because i am getting error....i am from Pakistan
what error?
how to send multiple sms in numbers in twilio
instead of just sending to one number, can i send to more than one? like bulk sms
Loop
@@amigoscode how is this done exactly? is it a change in the procedure in the above video
@@amigoscode also what exact tools and software do I need to execute the above procedure
thank u sir , we need to make this by PHP
here:www.twilio.com/docs/libraries/php
trying to apply the same logic you made on my c#. it's hard :(
It should be similar. what part are you struggling?
@@amigoscode i figure it out now thanks for the concern!
Is there a way to skip all the technical part and send text by a click of a button? I run a business that requires a minimum 10,000 text blast per month.
what do you mean technical part? You mean a system that does that for you?
@@amigoscode yes. Is there a system that does that for you? Like, by a click of a button, send out thousands of texts simultaneously
@@thecleaner23 hum I am not sure. But you can take what I have written and add a for loop to send to many numbers. That should be easy
@@amigoscode k. Thanks
Anyone know how to send long SMS to multiple numbers?...too lazy to read through specs
loop through list of numbers and send sms?
@@amigoscode how do you do that where ?
can you specify the code to use and the place ??
@@amigoscode how do you do that can you specify the code to use and where to use it ?
@@melissabrett72 which code?
Tried compiling, wasn't able to saying Error: Java invalid source 11
You are not using Java11. What IDE are you using ?
fixed issue now its saying error connecting to local host, I have the program running
@@UncutKing10 great. Let me know how you get on
figured it out lmao
can you send the link of this code sir
github.com/amigoscode/springboot-twilio
This is the link: github.com/amigoscode/springboot-twilio
hey amigos i try these same code but am getting " com.twilio.exception.AuthenticationException: Username can not be null" these type error.how can i resolve these.pls help me.
make sure you link the configuration file properly...
Guys is this api which tuwilio free?
what if the number you want to send a message is not valid?
If its not valid throw an exception with the reason for example thrown new IllegalStateException('Number not valid')
For god sake why did not you implement package?? please replay me and let me know where each class/interface should be under each package in a real project?
lol packages are simple. I did organise things since it was a small project
@@amigoscode Can I get a link for the updated one? or a screenshot?
@@stinxdisor6598 of what?
@@amigoscode for the project on the video with the packages, I would like to get the logic you used to organize it and the name convention
@@amigoscode Could you add packages to your original repository?
Please i need some help, after follow this tutorial i was able to deploy it on heroku but if am trying to open am getting these error
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Fri Apr 24 21:04:54 UTC 2020
There was an unexpected error (type=Not Found, status=404).
No message available
please can you help me out
link for project github.com/Dakony/DevopsDem
I love you guys!! Thank you so much for these videos.
Do you have anyone on your team or can you refer someone who can execute this? We could use some help. Please hit me up! Use my first name @digitalkeymarketing.com. Thanks!
Execute what sorry?
Damn breh! you're super closed to the screen lol ahahah
Oojdjf
Can't even imagine that one can take such a simple thing in sooooooo length manner.OMG.I haven't seen anyone in my life who practice such kind of verbose coding. It could have been completed in 10-15 line of code but you have stretched it to 200-300 lines. God save you and others from you.