How to Send SMS With Python, FastAPI and Vonage
Imagine you are on an island, stranded. You only have your computer and WiFi. The ocean waters are starting to creep up, and you’re worried you’ll be underwater if you don’t act quickly. The only way out is to build a Python website and send a text message to someone. Luckily, you’re a coder and have recently tinkered with the new FastAPI web framework. You’ve also tried out the Vonage Messages API to send SMS messages. Equipped with all this new knowledge, you whip out your laptop to get started. Installing the Vonage CLI The first thing you do is install the new Vonage CLI . It allows you to create a dashboard application quickly. You need a Vonage application to interact with the Messages API. From your terminal, you run these commands and talk yourself through them during the installation: You have NodeJS and npm installed, so the first command should work depending on whether or not your $PATH is correct. $ npm install -g @vonage/cli Bam! That worked! You now have th...