Getting started with Sanic: the asynchronous, uvloop based web framework for Python 3.5+


uvloop has been making waves in the Python world lately as a blazingly fast drop-in for asyncio’s default event loop. Sanic is a Flask-like, uvloop-based web framework that’s written to go fast. It is also named after the popular Sanic Internet meme, a poorly drawn version of Sonic the Hedgehog. Sanic is made for Python 3.5 . The framework allows you to take advantage of async/await syntax for defining… Read More

How to Hang Up Currently Active Twilio Phone Calls with Python


In case you found this in an emergency, here is all of the code you need to hang up all currently in progress, ringing or queued phone calls:

In order for this to work, make sure you grab your Account SID and Auth Token from your Twilio Console and set them as environment variables:

Why would I need to do this? Sometimes when testing your code… Read More

Getting Started with Swift Package Manager


When building iOS applications with Swift, you often need to use third party libraries as dependencies to avoid rewriting code that other developers have already created and shared. Swift Package Manager (SwiftPM) is a command-line tool for building, testing and managing Swift project dependencies. We will create a very basic Swift command line program that will parse some JSON using the popular SwiftyJSON framework to learn how to… Read More

Getting started with in Swift on iOS


WebSockets are a powerful protocol for real-time event based communication. makes working with WebSockets easier on iOS with Swift compared to implementing all the underlying bits yourself. Let’s demonstrate how to work with the Swift client library by building an application to monitor the status of Twilio phone calls. This application will be similar to the application built in another tutorial for getting started with on… Read More

How to Receive and Respond to a Text Message with Python, Flask and Twilio


Here’s all the code you need to receive an SMS message and to send a response using Python, Flask, and Twilio:

If you’d like to know how that works, check out this short video: Can you walk me through this step by step? When someone texts your Twilio number, Twilio makes an HTTP request to your app. Details about that SMS are passed via the request parameters…. Read More

Web Scraping and Parsing HTML in Swift with Kanna and Alamofire


When building iOS applications, we often need to work with data from various APIs. But sometimes the data you want access to isn’t nicely packaged and available via a REST API. In these cases we can scrape data directly from a web page using the Kanna Swift library. Let’s build an iOS app that will display all of the upcoming metal shows in New York City by… Read More

Pokemon Faux: Create Fake Pokemon Go Screenshots with Python, Flask and Twilio MMS


Pokemon Go is awesome and we all want to show off when we catch rare Pokemon. Let’s build a quick hack using Python and Twilio MMS that will allow you to trick your friends into thinking that you’ve encountered legendary Pokemon. You can continue reading to find out how to build this, or try it out now by texting an image and the name of a legendary Pokemon… Read More

SMS Sentiment Analysis in Python with Flask and the IBM Watson Twilio Add-on


With Twilio’s new Add-ons marketplace developers can reap the benefits of third party APIs with the flip of a switch. The IBM Watson Message Sentiment Add-on adds sentiment analysis information to every SMS request sent to your web application. Let’s build a Flask app that will determine the sentiment of text messages sent to your Twilio number. Getting started Before writing any code make sure you have: Python… Read More

How to Validate Phone numbers in Node/JavaScript with the Twilio Lookup API

Screen Shot 2016-06-30 at 1.02.13 PM

Twilio Lookup is a phonebook REST API that you can use to check whether a number exists, determine whether a phone can receive text messages, and retrieve carrier data associated with a number. Let’s write some code to validates phone numbers using the Twilio Node module. Getting started Before we dive into the code you’ll need to make sure you have: Node.js and npm installed A Twilio Account –… Read More