Getting Set….

When Michael and I got together to start playing with the Twilio tools and APIs for the first time, I was immediately intrigued by the simplicity of the system and how well Twilio had laid out the guide for beginners. As you could see in my first post, the necessary code is pretty straightforward. However, there was some pre-work that had to be done prior to our first lines of code being written.

Before we could really get started, we had to build out a primitive dev environment to allow us to collaborate on the codebase while experimenting. Here is what we needed:

  1. Dropbox account for sharing files. If you don’t have one, get one.
  2. dotCloud account for deploying the applications. Once you have an account, you will need to install their command line interface (CLI) application. Instructions available here. If you already have access to a server on the web, you might be able to skip this step and use your own.
  3. Twilio account. Free to create and play around with. Go get one…..I’ll wait.
  4. A Twilio phone number to use. Once you get into your Twilio account, go ahead and buy a number. I didn’t worry about the area codes, most cell phones these days are free long distance anyway.
  5. I was most familiar with PHP, so I chose that as the basis for our work. Depending on the language of your choice, you will likely need to download the API libraries from Twilio.

Michael and I are Apple fanboys so all of this development was done on our Macs.

Our first usage of the system was going to simply be for exploration of the platform while learning the nuts and bolts of the TwiML language used to power our future applications. Once our dev environment was created and running we turned to the Twilio docs, specifically their quickstart guides to learn. The first example, Hello Monkey.

About these ads
  1. Great post- 1 question. When I try to install the CLI, I am given the error -bash: $: command not found. Any idea how to fix this?

      • reidabutler
      • January 3rd, 2012

      Sam,
      Strange. I ran this command on another Mac (Snow Leopard) and it looks like it worked properly :

      sudo easy_install pip && sudo pip install dotcloud

      Is that the same command you were running?

      • This is now working (although I don’t know why. After I run this command, however, it displays:

        WARNING: Improper use of the sudo command could lead to data loss
        or the deletion of important system files. Please double-check your
        typing when using sudo. Type “man sudo” for more information.

        To proceed, enter your password, or type Ctrl-C to abort.

        Password:
        Sorry, try again.
        Password:
        It will then not allow me to type at all in the password field….

        • reidabutler
        • January 7th, 2012

        Sam,
        The password won’t show anything when you are typing I don’t believe. Enter the password for your admin user on your Mac and press enter. THat should do

  2. Ok, that worked. I am unclear how to set up the whole dev environment. Beyond that, I think I can get a hang of Twilio. Any chance you could do a step by step for your next post?

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: