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 HTTP …!-->
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 do …
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. …
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.
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-S™ processor on a board that is pin-out compatible with Arduino. Onboard you’ll find support for:
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:
- Visual Studio 2015
- Xamarin for Windows with Xamarin.Android
- Administrator access to your development machine.
With those prerequisites installed, we’re almost ready to start building our app. Before we can …
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 Messagi …
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 …
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:
What You’ll Need
require 'sinatra' require 'twilio-ruby' post '/receive_sms' do content_type 'text/xml' response = Twilio::TwiML::Response.new do |r| r.Message 'Hey thanks for messaging me!' end response.to_xml end post '/send_sms' do # Phone number to send to to = params["to"] # Message to send message = params["body"] client = Twilio::REST::Client.new( ENV["TWILIO_ACCOUNT_SID"], …
One of my favorite mobile applications on iOS is Slack. So many of my daily conversations happen inside of this well-designed chat application. They get so many of the little details right such as the ability to swipe down or tap to dismiss the keyboard. There’s a level of polish in the application that is missing in many apps. So, when I started building things with Twilio IP Messaging I really wanted to replicate the things that they do so well. It quickly turned into a struggle as I fought Auto Layout and UITableViews. I went to the Internet for help and that’s when I found SlackTextViewController. All of the features I love about Slack’s message view are available as an easy to use control.