Grails Plugin for Twilio
Groovy
Permalink
Failed to load latest commit information.
.settings 1.0d version Mar 23, 2012
grails-app Update to 1.0e with pull request from cloud Mar 30, 2012
scripts Initial commit Oct 13, 2011
test/unit/grails/plugin/twilio Update to 1.0e with pull request from cloud Mar 30, 2012
web-app
.classpath Update to 1.0e with pull request from cloud Mar 30, 2012
.gitignore Initial commit Oct 13, 2011
.project Update to 1.0e with pull request from cloud Mar 30, 2012
README
TwilioGrailsPlugin.groovy Update to 1.0e with pull request from cloud Mar 30, 2012
application.properties 1.0d version Mar 23, 2012

README

A Grails Plugin for Interacting with Twilio

https://www.twilio.com

CONFIGURATION
-------------

You will need to update your config.groovy with a section for twilio like that below

twilio {
	account {
		sid = 'XXXXXXX'
		auth_token = 'XXXXX'
	}
	
	sms {
		enable_status_callback = true  // set this to false if you DON'T want twilio to send ACK requests to your application
	}
	
	phones {
		main = '+16175551212'
	}
	
	proxy {
		host = "www"
		port = "80"
		method = "http" // or https
		
		auth {
			username = "foo"
			password = "bar"
		}
	}
}

Remember that the main phone will need to be your twilio Sandbox number, and that you can only send messages from
that number to verified twilio numbers.  This restriction doesn't exist for purchased Twilio numbers.

SmsService is responsible for sending SMS messages.  See the SmsController for example usage.