How to Send SMS Text Messages with Python & Twilio - Quick and Simple!

Sdílet
Vložit
  • čas přidán 13. 09. 2024

Komentáře • 13

  • @xXARab77Xx
    @xXARab77Xx Před 2 lety +2

    I must be the luckiest person alive haha. I just discovered your channel a couple of days ago when I was searching how to make generative art NFTs, and today you drop this video which I need for my senior project! I have to implement this on a Raspberry Pi to send OTP messages for a smart door lock I am working on. Thank You so much for these great videos please keep them coming they are very helpful

    • @pixegami
      @pixegami  Před 2 lety +1

      Haha what are the chances :)

  • @samwelomolo9474
    @samwelomolo9474 Před 4 měsíci +1

    00:01 Learn how to send SMS messages using Python and Twilio
    01:17 Acquire a free Twilio phone number and send test SMS using a terminal command
    02:32 Sending SMS with Python using Twilio
    03:50 Using Twilio to send SMS text messages with Python is quick and simple
    05:22 Create a main function to send SMS text messages with Python & Twilio
    07:00 Setting up environment variables for Twilio account ID and auth token is crucial for security.
    08:18 Setting up environment variables and API keys for Twilio in Python.
    09:36 Replacing default phone number in Twilio SMS script

  • @mathewsjoy8464
    @mathewsjoy8464 Před 2 lety +3

    Nice video, can you cover a video on testing in python, so like unit tests and how to integrate it with github

    • @pixegami
      @pixegami  Před 2 lety +2

      Great suggestion! My latest video is on unit testing in Python: studio.czcams.com/users/videoYbpKMIUjvK8/comments
      I didn't cover CICD (GitHub) integration in that one though - I just wanted to start with the basics of unit testing.

  • @MrBatino360
    @MrBatino360 Před 2 lety +2

    Great tutorial, do you know how many sms we can send per day in the free plan?

    • @pixegami
      @pixegami  Před 2 lety +1

      I don't think they work on a 'per day' credit, but instead on a fixed credit. From memory I think you get about 5 USD worth of SMS. In Australia (where I'm from), I think each message costs $0.05, so that's about 100 free messages in the trial. Not a lot --- but SMS are expensive!

  • @pascalzihalirwa7298
    @pascalzihalirwa7298 Před 2 lety +1

    is it possible to send a message to several phone numbers with by using twilio in python

    • @pixegami
      @pixegami  Před 2 lety +1

      Yup - just naively, you can probably use that same code in a loop or a map for all the different numbers you want to send to (N number of API calls).
      Also, it might be worth checking if Twilio has a way to send a message to a batch of numbers in a single API call.

  • @vikashkshatra7759
    @vikashkshatra7759 Před 2 lety +1

    Can you send message to multiple contacts

    • @pixegami
      @pixegami  Před 2 lety

      Yeah I think you just pass in an array of numbers in the destination rather than just one number.

  • @SUCSASHIFAN
    @SUCSASHIFAN Před rokem +1

    How to avoid "Sent from your twillio account"

    • @pixegami
      @pixegami  Před rokem

      Does it say that? I think you might need to upgrade to a production account or a paid plan.