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 Chris Hranj
    Travis CI SMS Notifications with Twilio Functions Travis CI plus Twilio Functions.

    Continuous integration (CI) is a software development practice that has exploded in popularity. CI allows developers to push code more rapidly by automating the building, testing, and deployment processes (read more about it here).

    Travis CI is a widely used CI tool. It syncs with your GitHub account and can perform many different actions when code is pushed to your repositories such as build files, run tests, deploy, etc. If you are unfamiliar with Travis CI, they have a Getting Started page with documentation for literally dozens of languages, as well as a Travis CI for Complete Beginners guide.

    This blog post will step through configuring Travis CI to send SMS notifications using Twilio Functions whenever a project is unable to build or fails a test.

    Getting Started

    In order to follow along with this post, the following is required:

    • a  GitHub account and Git, necessary for interacting …
    Read More
  • By Chris Hranj
    Monitoring Cryptocurrency Prices using JavaScript, Twilio Functions and SMS Check Bitcoin prices with Twilio Functions

    Twilio recently introduced Functions, a serverless environment to build and run Twilio apps. With Functions, you can build simple Twilio applications in JavaScript without worrying about configuring servers, finding a place to host TwiML or tunneling to localhost.

    Let’s get acquainted with Functions by building an app that monitors the price of cryptocurrencies. The finished app will use CoinMarketCap to send us pricing information via SMS about any cryptocurrency we send (Bitcoin, Ethereum, Dogecoin, etc).

    giphy.gif

    If you’re already familiar with setting up a new Function, the finished code for this Function is available on Github here.

    Getting Started

    In order to build this application and use Twilio Functions you’ll need the following:

    It may also benefit you to read the Intro to Functions blog post that explains a lot of the basics that this …

    Read More
  • By Chris Hranj
    Verify Phone Numbers with Java and the Twilio Lookup API X3dtr5jROhLHbA4-8RkYT_Va8KTkxaxf8UJNV9yIYFUQHouQxUgAIVJ7ekrdO7g2FEOfQ4cndUwstaMQJnrUqYRkTlZp-aoKqBNCp-ln9DenF228N_K6h54ogCq6cKWb99r8FmvZ

    Twilio Lookup is a simple REST API  for obtaining information about a phone number. Lookup can determine if a number exists, its type (landline, mobile, VoIP), and its carrier (Verizon, Sprint, etc) association. Lookup can also check if a number is able to receive text messages as well as format numbers into a standard format.

    Let’s validate phone numbers using the Twilio Java library and the Lookup API and make the code easy to port into your existing Java applications. This post will be directed towards macOS and Linux users, as some of the commands will not work for Windows users.

    If you just want to see the finished code, see this Github repository.
    vEJGsXtEE1Sc8.gif

    Configuring Our Environment

    Our code will use the latest version of Java 8 (1.8.0_121). You can download the latest version of the Java JDK from here. You can test your Java …

    Read More
  • By Chris Hranj
    Stripe SMS Notifications via Twilio, Heroku, and Python image07

    I recently started a small business using the online platform Storenvy. Storenvy integrates with Stripe, a popular online payments platform. As a small business owner, receiving notifications as soon as orders come in is critical.

    Emails are easy to miss, forget about, or overlook, but one thing I never fail to read is a text message. What if it were possible to receive a text message every time my store makes a sale?

    Neither Storenvy nor Stripe have SMS notifications built into their platforms, so let’s build a custom SMS notification system using Twilio, Heroku, and Python.

    Note: If you’re only interested in the code, it can be found on Github here, along with a “Deploy to Heroku” button.

    What You’ll Need
    Read More
  • By Chris Hranj
    Real-Time SMS with Erlang, ChicagoBoss and Twilio

    In this blog post we are going to use a functional approach to creating a web application with Erlang and the Chicago Boss framework. Our application will display incoming SMS messages in real-time and allow you to respond to them in your browser using the Twilio API.

    If you’re just interested in seeing the finished code for this blog post, it can be found on my Github here.

    Why Functional Programming? Why Erlang?

    Functional programming can be very intimidating to someone like myself who began learning to program using the object-oriented paradigm. Functional languages like Erlang pride themselves on their “no side effects” and “functions as first-class citizens” properties. This makes them ideal for concurrency and high-volume traffic applications.

    Chicago Boss is a great stepping stone for OO developers looking to dive into functional programming. It aims to solve the problem of slow server-side templates and adopts familiar …

    Read More
  • By Chris Hranj
    Getting started with Spring MVC and Twilio SpringMVC Banner

    In this tutorial we will take a very beginner look at Spring MVC and use it build a ‘Hello World’ style application. We will then take that what we’ve built and turn it into a SMS sending and voice calling application using theTwilio REST API.

    Spring MVC is a framework built on top of Java servlets that provides the components needed to build web applications using the model-view-controller architecture. It is one of the many tools provided by the Spring project.

    If you’re just interested in the finished code you can find it on my Github.

    Getting Started

    Before we jump into the code it’s important to understand the model-view-controller (MVC) architecture that Spring MVC implements.

    The MVC Pattern is a way of separating the logic of a program from the representation.

    The model does all the heavy stuff like calculate data, work with user input, and …

    Read More
  • By Chris Hranj
    Create a Standalone Voicemail Using Java and Twilio

    Why is receiving voicemails still such a pain in 2015? With landlines you need to deal with overpriced and outdated hardware. On mobile phones you need to call a number, enter a password, and sift through the voicemails until you reach the one you want. Wouldn’t it be easier to just receive a text message to listen to a new voicemail? Fortunately, Twilio plus a little Java code gives you the power to do just that.

    In this blog post we will use Apache Tomcat and Twilio to create a virtual answering machine that will receive and record all incoming calls. The answering machine will then text you a link to hear the message that was left for you.

    2015-09-10 01.45.06.png

    If you don’t want to follow along and just want to see the code, it has all been open sourced in this Github repository.

    Getting Started

    The first step to building …

    Read More
  • By Chris Hranj
    How to Warm Transfer a Call with Java and Twilio Voice warm-transferes-java2

    Calling into customer support or similar support lines can lead to some not so great experiences. Often times I find myself being tossed back and forth between different agents with no context of who I am talking to and when I am being transferred. These kinds of calls feel a lot like this:
    It's always sunny slapA better way for agents to handle incoming callers is to use a warm transfer. The term “warm transfer” can mean different things to different people. For this blog post we are going to use this scenario to explain a warm transfer: Agent A (Artemis) is speaking to the caller. Artemis needs to transfer the caller to Agent B (Barnabas). Artemis conferences in Barnabas, introduces the caller to Barnabas and then releases the call.

    warm transfer callflow

    In this blog post we will setup a very simple call center that supports warm transfers using Twilio’s Java helper library and an …

    Read More
  • By Chris Hranj
    Docker Workflow on OSX in 60 Seconds docker_banner

    Getting started with Docker feels more like a game of Simon than it does learning a new tool. Using Docker on OSX requires, at a minimum, boot2docker and docker. Multi-container applications require docker-compose, as well. It’s extremely easy to confuse the interfaces for each of these applications. For example, build, up, start, stop, ps, and save are commands shared across two, if not all three of the applications. The cheat sheet below covers the most basic workflow necessary to work with docker.

    Setting Up:

    Download and install the latest release package ( Boot2Docker-x.x.x.pkg) from here. Then run the following:

    $ pip install -U docker-compose
    $ boot2docker init
    

    Running Applications:

    $ boot2docker up
    $ eval "$(boot2docker shellinit)"
    

    For a single container:

    $ docker build -t yourapp_image .
    $ docker run …
    Read More
  • By Chris Hranj
    Building A Group Messaging App with Meteor, MongoDB and Twilio meteor_banner

    There’s been a lot of buzz around the Meteor framework, and with their adoption of ES6 coming later this summer now is a better time than ever to try it out!

    In this post, we are going to build a simplified GroupMe clone using Meteor, MongoDB, and Twilio. The app will serve as an SMS group messenger that will let us create groups of phone numbers and blast a text message to every member of that group. We will also expand its functionality to allow groups and individual numbers to be toggled on or off depending on who we want to receive a particular text.

    If at any point you are receiving errors and feel lost, or you just want to run this application without building it, you can obtain the finished source code here.

    Otherwise, prepare to explore the Meteor universe.

    Building Your Space Ship

    The first step …

    Read More
  • Newer
    Older
    Sign up and start building
    Not ready yet? Talk to an expert.