Skip to content

Instantly share code, notes, and snippets.

ruleset a8x60 {
meta {
name "Twilio Demo"
description <<
Demo for our main twilio number
>>
author "Sam Curren"
logging off
}
ruleset a8x72 {
  meta {
    name "NeoSale"
    description <<
      Selling the Neo Freerunner
    >>
    author "Sam Curren"
    logging on
    key twitter {
      "consumer_key" : "<redacted>",
  rule phonedone is active {
    select when twilio callstart
    twilio:say("Bidding has ended with a final price of #{highbid} dollars. Thanks!");
fired {
   last;
   }
  }
  rule smsdone is active {
    select when twilio sms
    twilio:sms("Bidding has ended with a final price of #{highbid} dollars. Thanks!");
ruleset a8x60 {
meta {
name "Twilio Demo"
description <<
Demo for our main twilio number
>>
author "Sam Curren"
logging off
}
@TelegramSam
TelegramSam / twiliofallback.xml
Created January 17, 2011 17:00
This file is used for fallback behavior on a Twilio number
<?xml version='1.0' encoding='UTF-8'?>
<Response>
<Say>Please hold while we connect you.</Say>
<Sms to='+18015551212'>Twilio Number Fail!</Sms>
<Dial>8015551212</Dial>
</Response>
@TelegramSam
TelegramSam / including module
Created February 2, 2011 23:10
including the module
meta {
...
use module a8x114 alias kpublicevents with url =
"http://www.google.com/calendar/feeds/sk8bh034vvqfbgercq68rtspi4@group.calendar.google.com/public/basic"
}
@TelegramSam
TelegramSam / provides
Created February 3, 2011 03:59
features that show what is up next
provides onnow, next
ruleset a8x117 {
meta {
name "CallFromEmail"
description <<
Place a call on inbound email
>>
author "Sam Curren"
logging on
key twilio {
ruleset a8x133 {
meta {
name "StackOverflow"
description <<
>>
author "Sam"
logging on
}
ruleset a8x115 {
meta {
name "Twilio Module"
description <<
Utility methods for interacting with Twilio
>>
author "Sam Curren"
logging on
//keys for testing