bugfix and add share buttons
This commit is contained in:
parent
acab5ff541
commit
f68b250d35
2
app.js
2
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;
|
||||
|
||||
}
|
||||
|
@ -19,6 +19,9 @@
|
||||
for(e=0;e<g.length;e++)(function(a){b[a]=function(){b.push([a].concat(Array.prototype.slice.call(arguments,0)))}})(g[e]);c._i.push([a,d,f])};window.mixpanel=c})(document,[]);
|
||||
mixpanel.init("6e6e6b71ed5ada4504c52d915388d73d");</script><!-- end Mixpanel -->
|
||||
<script>mixpanel.track('main');</script>
|
||||
<script type="text/javascript">var switchTo5x=true;</script>
|
||||
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
|
||||
<script type="text/javascript">stLight.options({publisher: "ur-e52063a3-f5a7-2078-bc73-7c684f5a6cdf"}); </script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@ -27,9 +30,16 @@
|
||||
<section>
|
||||
<div id="title">
|
||||
<h1>TextBelt</h1>
|
||||
<p>Free API for outgoing texts.</p>
|
||||
<p>Free API for outgoing texts.
|
||||
|
||||
</p>
|
||||
<p>
|
||||
<span class='st_facebook_large' displayText='Facebook'></span>
|
||||
<span class='st_twitter_large' displayText='Tweet'></span>
|
||||
<span class='st_email_large' displayText='Email'></span>
|
||||
</p>
|
||||
<hr>
|
||||
<!--<span class="credits left">Project maintained by <a href="https://github.com/typpo">typpo</a></span>-->
|
||||
<span class="credits left">Project maintained by <a href="http://www.ianww.com/">Ian Webster</a></span>
|
||||
<span class="credits right">Generated by GitHub Pages — Theme by <a href="http://twitter.com/#!/michigangraham">mattgraham</a></span>
|
||||
</div>
|
||||
|
||||
@ -37,13 +47,15 @@
|
||||
|
||||
<p>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.</p>
|
||||
|
||||
<p>Usage is dead simple:</p>
|
||||
<p>Usage is a simple POST request:</p>
|
||||
|
||||
<pre><code>$ curl <a href="http://textbelt.com/text">http://textbelt.com/text</a> \
|
||||
-d number=5551234567 \
|
||||
-d "message=I sent this message for free with textbelt.com"
|
||||
</code></pre>
|
||||
|
||||
<p> <i>number</i> and <i>message</i> parameters are required.</p>
|
||||
|
||||
<h3>Success and Failure</h3>
|
||||
|
||||
<p>Sample success:</p>
|
||||
@ -63,6 +75,12 @@
|
||||
<li><p>Some carriers may deliver text messages from "txt@textbelt.com"</p></li>
|
||||
<li><p>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.</p></li>
|
||||
</ul>
|
||||
|
||||
<h3>About</h3>
|
||||
|
||||
<p>
|
||||
This project is maintained by <a href="http://www.ianww.com/">Ian Webster</a>.
|
||||
</p>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user