Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now
Build the future of communications.
Start building for free
  • By Sam Agnew
    Setting up a Twilio Programmable Wireless SIM Card for SMS and Phone Calls marshallartmag

    With Twilio Programmable Wireless you can deploy and manage fleets of cellular connected devices, power connectivity for the Internet of Things and enable highly customized communications use cases.

    A couple of weekends ago, I attended the MAGFest video game music festival and had a blast! My friend Mikhail from Russia visited because his band Marshall Art was playing the festival (hint: they ruled). When he got to the states I let him use the Twilio Programmable Wireless SIM card that I was hacking around with because I had already configured it for voice and SMS.

    Programmable Wireless isn’t meant to be used as replacement to your cell phone provider, but it was a fun way to help out a friend with a small amount of code and a great first step for future projects.

    Acquiring and registering a SIM card

    Before moving on, you need to have a Twilio …

    Read More
  • By Sam Agnew
    Getting started with the Star Wars API in Node.js using Twilio Functions star_wars_episode_viii_the_last_jedi_2017_4k-HD

    Star Wars: The Last Jedi comes out tonight and I am massively excited to see it. However, some of my other friends who are seeing the movie aren’t as familiar with the Star Wars universe as I am. Let’s use the amazing Star Wars API to build a Twilio powered SMS hack to help fix that.

    We are going to use Twilio Functions to avoid having to go through the hassle of deploying a web application, the Star Wars API to gather relevant data on Star Wars characters, the Giphy API to grab GIFs of those characters, and Twilio SMS to facilitate the communications with our users.

    Working with the Star Wars API

    The Star Wars API is a very simple REST API that only functions using GET requests. Twilio functions gives us access to Got, which we can use for these HTTP requests. In particular, we’ll be working …

    Read More
  • By Sam Agnew
    How to Receive and Respond to Text Messages with Node.js, Express and Twilio Screen Shot 2017-10-20 at 3.59.16 PM

    You’re building an Express app and want to be able to respond to SMS messages? Let’s walk through how to add Twilio SMS to the Express “Hello World” app.

    Installing dependencies

    Before moving on, you’re going to need to have Node.js and npm installed. I am running version 8.6.0 and 5.3.0 respectively.

    We’re going to use:

    Navigate to the directory where you want this code to live and run the following command in your terminal to create an npm package for this project.

    npm init --yes
    

    The --yes just runs through all of the prompts that you would otherwise have to fill out or skip. Now that we have a package.json for our app, let’s install the necessary libraries:

    npm install twilio@3.8.1 --save
    npm …
    Read More
  • By Sam Agnew
    How to Receive and Respond to Text Messages in Python with Django and Twilio Screen Shot 2017-10-10 at 1.54.04 PM

    You’re building a Django app and want to be able to respond to SMS messages? Let’s walk through the well written Django tutorial and add Twilio SMS to the canonical basic Django app.

    Setting up your environment

    Before moving on, make sure to have your environment setup. Getting everything working correctly, especially with respect to virtual environments is important for isolating your dependencies if you have multiple projects running on the same machine.

    You can also run through this guide to make sure you’re good to go before moving on.

    Installing dependencies

    Now that your environment is set up, you’re going to need to install the libraries needed for this app. The code in this post will run on both Python 2 and 3. We’re going to use:

    Navigate …

    Read More
  • By Sam Agnew
    How to Make HTTP Requests in Swift 3 HTTP Requests In Swift 3

    Making HTTP requests is core functionality for modern languages and one of the first things many developers learn when acclimating to new environments. When it comes to Swift there are a fair amount of solutions to this problem both built into the language and by the community. Let’s take a look at some of the most popular ones.

    We’ll be using NASA’s Astronomy Picture of the Day API as the JSON API that we are interacting with in all of these examples because space is the coolest thing ever.

    giphy.gif

    Before moving on, make sure you have up to date versions of Swift 3 on your machine. If you use OSX, you can install Xcode from that link and have Swift available on the command line. If you use Linux, you can download it using the previous link as well. For Windows users, this might be helpful.

    Swift in the …

    Read More
  • By Sam Agnew
    5 Ways to Make HTTP Requests in Node.js drone-api

    Making HTTP requests is a core functionality for modern languages and one of the first things many developers learn when acclimating to new environments. When it comes to Node.js there are a fair amount of solutions to this problem both built into the language and by the community. Let’s take a look at some of the most popular ones.

    We’ll be using NASA’s Astronomy Picture of the Day API as the JSON API that we are interacting with in all of these examples because space is the coolest thing ever.

    giphy.gif
    Before moving on, make sure you have up to date versions of Node.js and npm installed on your machine.

    HTTP – the Standard Library

    First on our hit parade is the default HTTP module in the standard library. With this module, you can just plug and go without having to install external dependencies. The downside is that it isn’t very …

    Read More
  • By Sam Agnew
    5 maneras de hacer peticiones HTTP en Node bD7eiJ2xmM2V2XjytuBUv2a6aFoJ0sAsxH4ZCB-92S2uRohNDe7yJduCszi707jVOBlGVBfbjLlZi7zGoy5NyZb_kbiOiV9r0luu2wDQv97qCDSf_5IIsuxeJfN5Q5XBmdsKCTaQ

    Hacer peticiones HTTP es una funcionalidad básica para los lenguajes modernos y una de las primeras cosas que muchos desarrolladores deben  aprender para aclimatarse a nuevos entornos. Cuando se trata de Node.js hay una buena cantidad de soluciones a este problema construidos en ambos, en el lenguaje y por la comunidad. Vamos a echar un vistazo a algunos de los más populares.

    Vamos a utilizar el API de la NASA Imagen Astronómica del Día como el API JSON con que estaremos interactuando en todos estos ejemplos, porque el espacio es la cosa más genial

    Antes de continuar, asegúrese de que tiene la versiones más recientes de Node.js y npm  instalados en su máquina.

    HTTP – la Biblioteca Standard

    El primero en nuestra lista de éxitos es el módulo predeterminado HTTP de la biblioteca estándar. Con este módulo, se puede conectar y navegar sin tener que instalar dependencias externas. La desventaja …

    Read More
  • By Sam Agnew
    iOS UserNotifications in Swift iOSUsernotificationsSwift

    Local notifications provide a core functionality in many apps, and in Swift they are easy to add to whatever you’re building. With iOS10’s UserNotifications you can even display GIFs in notifications.

    Let’s build a quick application to display a local UserNotification containing a SEGA-related GIF and a prompt for the user to continue receiving notifications.

    Setting up the project

    Get started by grabbing this example project off of Github. It takes care of all the setup so we can focus on the important stuff. Open your terminal, navigate to where you want this project to live, clone this repository and check into the tutorial branch:

    git clone https://github.com/sagnew/sega-gifs.git
    cd sega-gifs
    git checkout tutorial
    

    This app has several dependencies:

    Read More
  • By Sam Agnew
    Image recognition in Python with the Clarifai API and Twilio MMS SamAndPedroWithText

    Image recognition can seem like a pretty daunting technical challenge. Scraping images to use as training data for a machine learning model stresses me out. That’s where Clarifai comes in. This API is great for implementing image recognition so you can focus on the core functionality of what you are building.

    Let’s build a Flask application in Python with Twilio MMS to receive picture messages over a phone number and respond with relevant keywords from Clarifai’s image recognition API.

    Setting up your environment

    Before moving on, make sure to have your Python environment setup. Getting everything working correctly, especially with respect to virtual environments, is important for isolating your dependencies if you have multiple projects running on the same machine.

    You can also run through this guide to make sure you’re good to go before moving on.

    Installing dependencies

    Now that your environment is set up, you’re going …

    Read More
  • By Sam Agnew
    Adding Vim keybindings to Xcode with XVim xvim

    When building iOS applications, you are most likely using Xcode. While Xcode is awesome, I miss the thrill of modal text editing I get when using my favorite text editor: Vim. Although Vim is available on OSX by default, it’s difficult to use for iOS development. Using XVim, it’s possible to get the best of both worlds by adding Vim keybindings and functionality to Xcode.

    Preparing a certificate for code signing

    Before moving on, make sure you have Xcode closed.

    Starting with Xcode 8 Apple no longer loads third party plugins so we have to code-sign Xcode in order to do so. You can follow the steps on this page, or continue reading.

    If you already have a certificate from Apple’s developer program, you can skip to the next section. Otherwise, do the following:

    1. Open “Keychain Access” (in Applications -> Utilities) and select “login” in the left …
    Read More
  • Newer
    Older
    Sign up and start building
    Not ready yet? Talk to an expert.