# Twilio CFML Library

## Introduction

Thank you for downloading the CFML library for Twilio. If you have made it to this point you obviously know what Twilio is and have an interest in leveraging the awesome service that they provide. If you need more information on Twilio you can view the following links:

- How It Works
- Pricing
- Documentation
- Support Forums

## Getting Started With CFML & Twilio

The CFML library for Twilio was put together with the goal of taking the simple Twilio API and making it even easier for CFML developers to consume.

A few things you will need to do prior to running any of the samples below:

1. Go to Twilio.com and create your free trial account. They will provide you with $30 in free calling credits for testing.
2. Once you have created your account you will want to locate your AccountSid and AuthToken. These can be found under "Developer Tools" on the Dashboard page once logging into your Twilio account.
3. Edit the TwilioSettings.cfm template that sits along side this index.cfm page in your file sytem using the AccountSid and AuthToken from your Twilio account.
4. Run any of the samples below and have fun with the Twilio & CFML!

## CFML Developer Tools

- CFML REST Test Console
- Documentation

## Samples

- CFML Test Console
- Generate Client Capability Token
- Sample REST
- Sample REST - Purchase Phone Number
- Sample REST - Bad Parameter
- Sample REST - Bad HTTP Method
- Sample TwiML
- Sample TwiML - Bad Input
- Sample Twilio Request Validation - view the Validation.cfm file in the samples directory to see how that works.

## Future Library Enhancements

- Realtime Call Debugger - Coming soon this will allow you to watch the TwiML being returned from your application in real-time.
- Integrated Logging Component - This will provide hooks for logging inside the library.

## Project & Contact Information

This project is hosted on RIAForge.

- Updates and additional information can be found at http://twiliolibrary.RiaForge.org
- Project SVN

## Licensing (MIT License)

Copyright (c) 2011 Jason Fill (@jasonfill)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.