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 Brent Schooley
    How to Send an SMS With Python Using Twilio How to send an SMS in Python

    All you need to send an SMS with Python using Twilio are the following twelve lines of code:

    import os
    from twilio.rest import Client
    
    
    account_sid = os.environ.get('TWILIO_ACCOUNT_SID')
    auth_token = os.environ.get('TWILIO_AUTH_TOKEN')
    
    client = Client(account_sid, auth_token)
    
    client.messages.create(from_=os.environ.get('TWILIO_PHONE_NUMBER'),
                          to=os.environ.get('CELL_PHONE_NUMBER'),
                          body='You just sent an SMS from Python using Twilio!')
    

    If you’d like to see this in action, check out this short video:

    More of a Textual Learner? Here’s a Walkthrough

    The first thing we need for the above code to work is a Twilio account. Sign up fo …

    Read More
  • By Brent Schooley
    How to Send an SMS With Node.js Using Twilio how_to_send_sms_node

    Ten lines of code (including whitespace!) is all you need to send an SMS with Node.js using Twilio:

    const client = require('twilio')(
      process.env.TWILIO_ACCOUNT_SID,
      process.env.TWILIO_AUTH_TOKEN
    );
    
    client.messages.create({
      from: process.env.TWILIO_PHONE_NUMBER,
      to: process.env.CELL_PHONE_NUMBER,
      body: "You just sent an SMS from Node.js using Twilio!"
    }).then((messsage) => console.log(message.sid));
    

    If you’d like a short explanation about how this works, check out this short video:

    Prefer a Walkthrough Instead?

    The first thing we need for the above code to work is a Twilio account. Sign up for your free trial account here.

    We also need an SMS-enabled phone n …

    Read More
  • By Brent Schooley
    How to Send an SMS With Ruby Using Twilio how_to_send_sms_ruby

    Here’s all the code you need to send an SMS with Ruby using Twilio:

    require 'twilio-ruby'
    
    client = Twilio::REST::Client.new(
      ENV['TWILIO_ACCOUNT_SID'],
      ENV['TWILIO_AUTH_TOKEN']
    )
    
    client.messages.create(
      from: "[YOUR TWILIO NUMBER]",
      to: "[YOUR CELL PHONE NUMBER]",
      body: "You just sent an SMS from Ruby!"
    )
    

    If you’d like a short explanation about how this works, check out this short video:

    How About a Walkthrough?

    The first thing we need for this to work is a Twilio account. Sign up for your free trial account here.

    We also need an SMS-enabled phone number. You can search for and buy one in the Twilio console.

    Sending an SMS using Twilio is as simple as making an …

    Read More
  • By Brent Schooley
    How to Build API Driven iOS Apps in Swift Using Siesta siesta-header

    There are so many wonderful APIs out there but they aren’t always easy to work with in mobile apps. The Siesta framework makes using APIs in Swift apps a joy.

    Patterns for using REST APIs in mobile apps tend to focus on requests but the ‘R’ that matters most in REST is Resource. Siesta provides an app-wide observable model of a RESTful resource’s state which answers the following three questions:

    • What is the latest data for this resource, if any?
    • Did the latest request result in an error?
    • Is there a request in progress?

    Not only does it answer those questions but as soon as one changes it broadcasts answers to anything interested in listening to them. It also caches the results so you …

    Read More
  • By Brent Schooley
    Getting Started with Twilio Programmable Wireless on the LinkIt ONE cover

    At SIGNAL we launched Twilio Programmable Wireless which allows you to add cellular data to your IoT projects using a Twilio SIM card. The LinkIt ONE dev board in the SIGNAL hackpack is a perfect place to try out these new capabilities. In the next 5 minutes you’ll learn how to use the cellular functionality of this device using your Twilio SIM card.

    What You’ll Need

    Before we get to hacking there are a few things we need to get set up. First, we need to set up the LinkIt ONE board and make sure it is programmable using the Arduino IDE and the MediaTek LinkIt ONE SDK. The steps for getting this set up are outlined in this blog post. Once you’ve completed those steps you’ll want to also make sure to attach the cellular antenna if you haven’t already because it is needed for Twilio Programmable Wireless. …

    Read More
  • By Brent Schooley
    Getting Started with Arduino on the LinkIt ONE LinkIt ONE

    Arduino is an amazing platform for building interactive hardware projects. In the next ten minutes we’ll get our first program running on the SeeedStudio LinkIt ONE development board.

    Hackpacks are back!

    If you’re coming to SIGNAL (you are coming to SIGNAL right? – use promo code BSCHOOLEY20 for 20% off your ticket) you’ll be receiving a LinkIt ONE in the Hackpack we’re giving to every attendee. Stop by the Hackpack station and we’ll help you get it up and running.

    What is the LinkIT ONE?

    The LinkIt ONE is a development board that is made by the collaboration of SeeedStudio and MediaTek. It features an ARM7 EJ-STM processor on a board that is pin-out compatible with Arduino. Onboard you’ll find support for …

    Read More
  • By Brent Schooley
    How to Build Android Chat Apps using Xamarin and Twilio android-header

    Were you excited when you heard we had Xamarin support for Twilio IP Messaging in iOS but were wondering ‘what about Android?’. Read on and in just 10 minutes you will build an Android chat app using Xamarin and Twilio IP Messaging.

    Get Ready to Build

    If you’re developing this tutorial on a Mac, make sure to have Xamarin Studio with Xamarin.Android installed. You’ll need Android API Level 21 installed for this sample. Windows developers will need to have:

    Windows developers will need:

    With those prerequisites installed, we’re almost ready to start building our app. Before we c …

    Read More
  • By Brent Schooley
    How to Build iOS Chat Apps using Xamarin and Twilio ipm

    Twilio IP Messaging for iOS is now supported on Xamarin! In just 10 minutes, this tutorial will show you how to build an iOS chat app using Xamarin and Twilio IP messaging.

    Get Ready to Build

    If you’re building this tutorial on a Mac, make sure you have Xamarin Studio with Xamarin.iOS installed. Windows developers will need to have:

    • Visual Studio 2015
    • Xamarin.iOS for Visual Studio installed and configured to build the iOS application (requires a Mac on the network)
    • Administrator access to your development machine

    With those prerequisites installed, we’re almost ready to start building our app. Before we can do that we’ll need to get our Twilio account set up so that we can use IP Messa …

    Read More
  • By Brent Schooley
    How to Build and Design iOS Video Chat Apps Using Swift designing video apps

    Peer-to-peer video and video conferencing are changing the way people communicate. Voice and text conversations are great but sometimes you really want to see the person on the other end of the conversation. The addition of facial expressions and visual context enhances the ways in which we can communicate. Video chat works best with a clean design that gets out of your way when you don’t need it. Building that design is what we’ll focus on in this post. We’ll start with the Twilio Video for iOS Swift Quickstart and make some design changes to make it function as a great peer-to-peer chat app.

    Before we get started you’ll need to get the Twilio Video for iOS Swift Quickstart running since we’ll be using that as our starting point. You’ll need a free Twilio account and then it’ll just take a few minutes to get the quickstart running. Follow the …

    Read More
  • By Brent Schooley
    Enhancing the User Experience of iOS Chat Apps using Swift Enhancing Chat App UX with Swift

    In our previous post about designing chat apps we started with the iOS Quickstart for IP Messaging and improved on the user experience by using SlackTextViewController. We ended up with a well-designed foundation for a full-featured chat application that we will build upon in this post. The goal at the end of the series is to have a polished and complete chat app solution for iOS built using Swift. In this post we’ll add some polish to the loading experience and add some more features to the chat experience like autocompletion and message editing. Here’s a look at what we’ll be adding:
    preview.gif

    What You’ll Need

    First, you’ll need a free Twilio account. Sign up for one here. Next, you’ll need the …

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