#111 Twilio SMS API
16/02/2023
Free
Twilio makes it super easy to send SMS from your Ruby app.
In this episode we will:
- get Twilio API credentials
- get a Twilio phone number from which we will send SMS
- verify a test phone number for receiving SMS in development
- write an SmsService that we can call from anywhere in our app
- ensure that when using the SmsService we don't send SMS to a real phone number
- explore the Twilio SMS Dashboard
Episode source code: https://github.com/corsego/111-twilio-sms-api/commit/5cecefabfc2228207989677c1dd5b54b21cf9218
Based on this blogpost: https://blog.corsego.com/rails-twilio-sms-api
Don't worry, I've updated my twilio credentials. Don't forget to never expose yours!
0:00 Do you need SMS in 2023?
1:02 Install Twilio Ruby in a Rails app
2:52 Get Twilio API keys, phone number and whitelist countries
5:50 Try sending an SMS
6:22 Make Twilio SmsService generic
8:50 Send generic SMS message
9:53 Summary of code changes
11:09 Explore Twilio dashboard
0
Sign in to join the conversation
Recommended based on what you are watching now
![#22 ActiveStorage Direct Uploads, AWS S3 CORS](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTc2NiwicHVyIjoiYmxvYl9pZCJ9fQ==--f5258a8ba29d77586e108ca7ba8a0611ddc4b17f/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)
06:40
#22 ActiveStorage Direct Uploads, AWS S3 CORS
12/05/2021
Free
![#30 Social log in with Github (omniauth 2.0)](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTg5NSwicHVyIjoiYmxvYl9pZCJ9fQ==--a2ebfee8d923c8e23321fc7af7d1abf5ae47fe5a/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)
10:58
#30 Social log in with Github (omniauth 2.0)
25/05/2021
Free
![#76 Fontawesome with Importmaps in Rails 7](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTc1MiwicHVyIjoiYmxvYl9pZCJ9fQ==--c836113d797acc85082774a94e82dc0177aa0773/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)
07:28
#76 Fontawesome with Importmaps in Rails 7
24/04/2022
Free