From f68b250d35c1e9b76f7b6b8cda90f2eb816e6c5f Mon Sep 17 00:00:00 2001 From: typpo Date: Mon, 9 Apr 2012 14:48:17 -0400 Subject: [PATCH] bugfix and add share buttons --- app.js | 2 +- views/index.html | 24 +++++++++++++++++++++--- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/app.js b/app.js index def301a..07f4964 100644 --- a/app.js +++ b/app.js @@ -38,7 +38,7 @@ app.get('/', function(req, res) { app.post('/text', function(req, res) { if (!req.body.number || !req.body.message) { mpq.track('incomplete request'); - res.send({success:false,message:'Incomplete request.'}); + res.send({success:false,message:'Number and message parameters are required.'}); return; } diff --git a/views/index.html b/views/index.html index d5c9e69..16682b8 100644 --- a/views/index.html +++ b/views/index.html @@ -19,6 +19,9 @@ for(e=0;e + + + @@ -27,9 +30,16 @@

TextBelt

-

Free API for outgoing texts.

+

Free API for outgoing texts. + +

+

+ + + +


- + Project maintained by Ian Webster Generated by GitHub Pages — Theme by mattgraham
@@ -37,13 +47,15 @@

TextBelt is an outgoing SMS API that uses carrier-specific gateways to deliver your text messages for free. This is nice for a low-cost texting app or testing without running down your Twilio balance.

-

Usage is dead simple:

+

Usage is a simple POST request:

$ curl http://textbelt.com/text \
    -d number=5551234567 \
    -d "message=I sent this message for free with textbelt.com"
 
+

number and message parameters are required.

+

Success and Failure

Sample success:

@@ -63,6 +75,12 @@
  • Some carriers may deliver text messages from "txt@textbelt.com"

  • We support the following U.S. providers: Alltel, Ameritech, AT&T Wireless, Boost, CellularOne, Cingular, Sprint PCS, Telus Mobility, T-Mobile, Metro PCS, Nextel, O2, Orange, Qwest, Rogers Wireless, US Cellular, Verizon, Virgin Mobile.

  • + +

    About

    + +

    +This project is maintained by Ian Webster. +