30 Days of Python - Day 24 - Sending SMS Texts with Python and Twilio - Python TUTORIAL

  Рет қаралды 14,008

CodingEntrepreneurs

CodingEntrepreneurs

Күн бұрын

Пікірлер: 21
@Pyplane
@Pyplane 4 жыл бұрын
Awesome as always 👍
@anesu6184
@anesu6184 4 жыл бұрын
Thanks always for your tutorials.
@aliounefaye532
@aliounefaye532 3 жыл бұрын
I have to salut you for your dedication to learning and teaching man! Its crazy to know people like you exist!
@CodingEntrepreneurs
@CodingEntrepreneurs 3 жыл бұрын
I’m certainly not the only one. Some people just enjoy to share knowledge; I hope you share as well
@stanleyowunna4716
@stanleyowunna4716 4 жыл бұрын
Your tutorials have been me understand so many things I didn’t before . Thanks for all of them
@neo-the-one
@neo-the-one 4 жыл бұрын
Great video 👌. I hope you do more twilio tutorials in the future
@exactbrain6248
@exactbrain6248 4 жыл бұрын
i know its going to be perfect tutorial i just clicked, thanks i love you
@abdulsalamjamaeazidane5481
@abdulsalamjamaeazidane5481 4 жыл бұрын
Keep going 😍
@serious6037
@serious6037 2 жыл бұрын
How do you always make something very easy very complicated and sound like its a endless labyrinth?
@moeghamdi6553
@moeghamdi6553 3 жыл бұрын
Great video man. How do I have that same message be sent to multiple phone numbers?
@likeashutoshkumar197
@likeashutoshkumar197 4 жыл бұрын
Cool❤️
@gaylonalfano
@gaylonalfano 4 жыл бұрын
What's the difference between a webhook and a serverless function? They sound almost interchangeable.
@chikaotisi8583
@chikaotisi8583 3 жыл бұрын
How do you send to multiple numbers
@gaylonalfano
@gaylonalfano 4 жыл бұрын
Is creds.json essentially replacing something like an .env file? I've seen examples of storing these types of credentials in an .env file and then having a settings.py (or config.py) file that retrieves the environment variables using something like os.getenv("SECRET_VAR"). Just curious about the difference. Thanks!
@CodingEntrepreneurs
@CodingEntrepreneurs 4 жыл бұрын
Storing creds in environment variables is the best way for sure. `.env` files aren’t great for this.
@gaylonalfano
@gaylonalfano 4 жыл бұрын
@@CodingEntrepreneurs Thanks for the reply! Still lots to learn. I've slowly gotten comfortable with using .env, then a separate settings.py file and then finally importing these environment variables into my "public" code (e.g., from settings import ENV_VAR). I think I saw this flow inside the FastAPI docs so I just started copying it haha. Here is my attempt at making a function to reset credentials. Totally hacky but was just trying to see if I could make it work. The end result is it basically builds/writes my .env file. Way more complicated than necessary but I'm just exploring how to work between/around files. Great series and thanks again! def reset_credentials(reset_creds: bool = True): """ This will save our creds from above (blank or not) to a local .env file named so we can re-use these credentials. It's recommended to create new API keys for each new project so we can turn them off at anytime without causing disruption to other projects. """ if reset_creds: twilio_sid: str = getpass("What's the Twilio Account SID? ") twilio_secret: str = getpass("What's the Twilio Secret? ") send_to_number: str = getpass("What's the number to send to? ") send_from_number: str = getpass("What's the number to send from? ") creds: t.Dict[str, str] = { "TWILIO_SID": twilio_sid, "TWILIO_SECRET": twilio_secret, "SEND_TO_NUMBER": f"+{send_to_number}", "SEND_FROM_NUMBER": f"+{send_from_number}", } # print(f"creds dict: {creds.items()}") # Create a concatenated string for each credential k:v pair # creds_lines: t.List[str] = [] # for k, v in data.items(): # # Have to add newline for f.writelines() # cred_line: str = f"{k}={v} " # creds_lines.append(cred_line) creds_lines: t.List[str] = [f"{k}={v} " for k, v in creds.items()] # Now write each credential line to the .env file with open(".env", "w") as f: # Just write one line at a time: f.writelines(creds_lines) # Let's try it: reset_credentials(reset_creds=True)
@suliman1448
@suliman1448 4 жыл бұрын
Can I download you videos?
@gauravsonthalia921
@gauravsonthalia921 4 жыл бұрын
How to generate a pdf report from django admin model object form. Please help. Really stuck with this one..
@vijayrao10
@vijayrao10 4 жыл бұрын
Please provide react js Full course also
Create email and text message SMS alerts with Python!
9:49
ClarityCoders
Рет қаралды 156 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
How to Send and Receive SMS Using Python
3:36
Twilio
Рет қаралды 111 М.
Send SMS for Free with Python Tutorial (Twilio)
5:09
Indently
Рет қаралды 94 М.
Build A Python App That Tracks Amazon Prices!
18:44
developedbyed
Рет қаралды 1 МЛН
30 Days of Python - Day 26 - Python to Databases via SQL - Python TUTORIAL
1:02:43
A* Pathfinding Visualization Tutorial - Python A* Path Finding Tutorial
1:33:02
Mastering Python - Everything You Need To Know To Become a Python Master
16:02
OpenCV Course - Full Tutorial with Python
3:41:42
freeCodeCamp.org
Рет қаралды 4 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН