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 David Thurston
    How to Call the Twilio API from Java Programs on the Commandline Twilio logo and Java program

    If you you need to do a quick Twilio test, or compile and run programs on a remote computer without any GUI, or run test programs on your own computer and you don’t want to use a full blown IDE development environment, this is the article for you.

    Check Java Installation

    Confirm that you have a Java runtime environment (JRE) on your computer for running Java class files:

    $ java -version
    java version "1.8.0_131"<br/>Java(TM) SE Runtime Environment (build 1.8.0_131-b11)<br/>Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
    Check that you have the Java compiler on your computer:
    $ javac
    Usage: javac <options> <source files>

    If you don’t hav …

    Read More
  • By David Thurston
    How to Build A Twilio-Hosted Group Messaging Service with Sync, Functions and SMS su6Q5UAFAqrAq0UBPHxiMif-X2nGhlp48QTLnO4boDreviu4ENW32eCWYOAm9MBCosQYt33GoZJuXcj9Mb5V8DJ_0hygoyVb2zxWObSJDI3u5U1gapJ0XquapxCA6dYhm3lJgmLZ

    With Twilio’s services you can manage your own group SMS application for Scheduling business meetings, planning wedding activities, parties, or a dinner get together. A friend of mine uses group SMS for family communications among his siblings and parents.

    Don’t like Facebook? Or someone you want to include in your group doesn’t use Facebook or WhatsApp? No worries, use SMS. Yes, everyone with a mobile phone has an SMS app because your phone comes with an SMS app. You’re Group SMS app ready for group messaging.

    The blog, How To: Set Up SMS Broadcasts in Five Minutes, says, “SMS messages are opened 98% of the time within minutes of being received. When you need to reach your constituents quickly and consistently, there’s no better medium than SMS.”

    This blog gives you the configuration steps to communicate quickly and effectively with your friends, colleagues or customers.


    The complete implementation …

    Read More
  • By David Thurston
    How to Customize Phone Call Workflows with Twilio Studio and TaskRouter DwDKC5e3WpSXDdQ0IDhv6JVi7prZYSvPEJScRa1zuk3eduWB6fXPnNteLgVdStFIfVLh7i0FLjodORdo0x935POwM3e9HE60epYlwGp99AZBX2fKt9znOzLg41k7wFbVOaiGefzw

    With Twilio Studio and TaskRouter you can quickly customized call flows. This post will walk you through the steps to receive calls on your Twilio phone number and have the callers put into a call queue. The callers will listen to music while the application arranges an agent to take their call. Agents will use their web browser, on their computer, to manage their status: offline and available to accept calls.

    When a caller is added into the queue, TaskRouter creates a reservation and then asks an agent if they will accept the call. The agent has the option to Accept and be connected with the caller, or to Reject the call. If the call is rejected, TaskRouter will ask the next available agent.

    When the agent accepts the call, TaskRouter will contact the agent based on the agent’s TaskRouter configuration. For example TaskRouter maybe configured to dial the person’s …

    Read More
  • By David Thurston
    Using Twilio Functions to Add Custom JavaScript Code in Studio Flows Twilio Studio

    Twilio Studio makes it easy to manage voice call flows with its visual user interface. A Studio flow typically starts with a trigger event such as an incoming call to your Twilio phone number. The tutorial Forward Call with Studio has an Incoming Call as the trigger followed by a Connect Call To (forward_call) widget that forwards the call to a person’s phone number (see following screen print). The above flow, adds logic in between the trigger and the forward_call widget. This article is how to add logic using a Studio Run Function widget to call a Twilio Function, followed by a Split widget.

    Building logic into the flow gives Studio more power to route calls to various destinations. The example here, is to choose between routing a call to the main office phone during business hours, or to voicemail after business hours.

    In the my example …

    Read More
  • By David Thurston
    How to Receive SMS Messages into Google Sheets with Apps Script and Twilio Received_Messages_-_Google_Sheets copy

    You want to receive SMS messages for business or for personal reasons, but not on your day-to-day mobile phone. Twilio has phone numbers which make it simple to receive SMS and we can easily place the messages into a Google Sheet.

    Getting Started

    Go to the Twilio Console, sign into your existing account or create a new account. Obtain a Twilio phone number or use an existing number. As a quick test, send a message from your mobile phone to your new phone number. On your mobile phone, you receive an automatic reply message from Twilio. You go to the Twilio Console SMS logs and view the message.

    You can receive messages separate from your mobile phone, success! However, then you realize that the Console is functional for testing, but not practical for quickly searching and sorting the messages you’ve received.

    How do we read the messages in …

    Read More
  • By David Thurston
    How To Use Twilio Test Credentials with Magic Phone Numbers l46CaNeKbbE9RGUEBLoukzIoGp3K8WDP3x3nILbuG2T25tswge4paTiiiXukJN0nXO9cHdEo7K6aEggqos3dq9HSCzRT-pb3LIGs70cXKMAbiUJ8pt2xjHRy_SxBk55FmeMAi_AL

    Test credentials and magic phone numbers are used to test applications without actually sending SMS messages or making actual voice phone calls. These tools save time and money because you’re not charged for testing and responses are quicker as the tests only communicate with Twilio service, i.e. tests stay within Twilio services, no connections are made to carriers.

    To follow along, if you are using UNIX or a Mac computer, use cURL to send SMS messages. If you are using Windows, you will need to write a program as outlined in our Send SMS Messages documentation. Here is the cURL command from the documentation:

    curl -X POST 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXX …
    Read More
  • Newer
    Sign up and start building
    Not ready yet? Talk to an expert.