Introducing Our Ridiculously Simple Twilio SMS API
blog.twilio.com
blog.twilio.com
Sending an SMS from 415-555-1212 to 555-867-5309 asking Jenny if she wants to get dinner:
POST /2008-08-01/Accounts/AC309475e5fede1b49e100272a8640f438/SMS/Messages HTTP/1.1
From=415-555-1212&To=555-867-5309&Body=Hi+Jenny%21+want+to+grab+dinner%3F
http://www.twilio.com/docs/api/2008-08-01/rest/sending-smsfor the consumer side, i dont know if youve seen this chatroulette thing. might be fun for shits and giggles to do that with twilio. no clue how it could be sustainable though.
What I like best about this API is that it sends and receives via a regular phone number that you own as part of your Twilio account. That's waaaaay less complicated -- and way cheaper -- than futzing around with shortcodes and the like (as anyone who has ever investigated shortcodes can attest).
I personally can't wait to see what the competition does. I hope Twilio left some wiggle room in their $0.03 price in case they have to go into a pricing war with other providers (thinking Google).
To me this means I have no reason not to TXT enable all of my apps. It also offers a quick and easy way to make money for a lot of "freemium" services out there. Just enable TXT updates and up-charge per TXT (possibly).
-danielle (@twilio)
Edit: I think Danielle just mistyped. From the FAQ: "Each of your Twilio SMS-enabled phone numbers can send SMS messages at a rate of 1 message per second. You can make requests to Twilio as fast as you like, and Twilio will queue the messages, releasing them at a rate of 1 message per second. It is not possible to adjust this rate."
danielle (@twilio)
But then again, having a bank of 100 phone numbers just to send the million messages you want to send within an hour sounds slightly annoying from a logistics perspective.
But you NEED to go after sms payments. They're horrendous at the moment and completely unusable for most people because of the high fees. I'm really hoping some startup can tackle it and turn it into a viable payment solution.
-evan (@twilio)
I meant sms billing, services like zaypay/daopay. It's just that now the fees are so horribly high that it's almost pointless.
Is this true? In the UK at least it's been ridiculously simple and cheap to build SMS apps for years. I've built several and the last I had up and running in an hour from start to finish. What's a little harder (for me anyway) is coming up with ideas for SMS services that are actually useful.
The rest of Twilio's stuff looks awesome though, I wish they'd bring it to the UK!
This would be even better with shortcode support.. The FAQ simply says "not available at this time". Does anyone know if there's a time frame for that feature?
We also allow your customers/clients/whoever to interact via keywords on the shared shortcode (313131 in the US / 393939 in Canada)
Check out [http://www.twilio.com/docs/quickstart/sms/tracking-conversat...]. It says that the session variable is stored as the context between two numbers. Is that a unique pair, or is it a direction pair?
In other words, is the $_SESSION between $_REQUEST['From']=='Zack' && $_REQUEST['To']=='HN' the same as the $_SESSION between $_REQUEST['From']=='HN && $_REQUEST['To']=='Zack?
If that's the case, then the example provided in your documentation is flawed, because you're saying:
A) <Sms><?php echo $name ?> has messaged <?php echo $_REQUEST['To']." ".$counter ?> times</Sms>
When you really mean
B) <Sms><?php echo $name ?> has messaged OR BEEN MESSAGED BY <?php echo $_REQUEST['To']." ".$counter ?> times</Sms>
It's bi-directional... ie, cookie state for the conversation. But in the quickstart, if you think about it... you only increment the counter once for the received message and the reply that the script is going to send, so the counter works out correctly. You had us thinking for a few minutes there :)
-jeff @twilio
To clarify, the API/platform supports the following two scenarios:
1) You make an HTTP POST to the SMS resource 2) Twilio automatically sends out a text message, and simultaneously does a GET/POST of your script, and $_REQUEST contains "From", "To", and "Body" keys
AND
1) Your Twilio phone # receives a text message 2) Twilio automatically pings your script, and inside the ping, $_REQUEST contains "From", "To", and "Body" keys. The value of the "To" key is always your Twilio phone number. (Unless you have multiple Twilio #s, I suppose).