mirror of
https://github.com/cwinfo/envayasms.git
synced 2025-04-18 22:07:30 +00:00
update website for version 2.0.5
This commit is contained in:
parent
7df2bbea24
commit
816245f0ac
@ -2,6 +2,20 @@ id: history
|
|||||||
title: History
|
title: History
|
||||||
---
|
---
|
||||||
|
|
||||||
|
Verson 2.0.5 (2012/03/15)
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Option to notify server of incoming calls (enabling users to access simple SMS services for free by calling and hanging up, then receiving a SMS reply)
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Send additional information from phone to server, such as the phone's current network type, age (delay) of incoming messages, device manufacturer, model, and SDK version
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Various bug fixes
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
EnvayaSMS for Drupal (2012/03/04)
|
EnvayaSMS for Drupal (2012/03/04)
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -47,13 +47,13 @@ HTTP Request Format
|
|||||||
<pre>
|
<pre>
|
||||||
POST /sg/app HTTP/1.1
|
POST /sg/app HTTP/1.1
|
||||||
X-Request-Signature: sAemG31uRllk/K9xck2WRNaF/WI=
|
X-Request-Signature: sAemG31uRllk/K9xck2WRNaF/WI=
|
||||||
Content-Length: 120
|
Content-Length: 140
|
||||||
Content-Type: application/x-www-form-urlencoded
|
Content-Type: application/x-www-form-urlencoded
|
||||||
Host: 192.168.70.1:3000
|
Host: 192.168.70.1:3000
|
||||||
Connection: Keep-Alive
|
Connection: Keep-Alive
|
||||||
|
|
||||||
from=6505551234&message_type=sms&message=test&version=2&phone_number=16505551212
|
from=6505551234&message_type=sms&message=test&version=2&phone_number=16505551212
|
||||||
&action=incoming×tamp=1317506831000
|
&action=incoming&age=23&network=WIFI&timestamp=1317506831000
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>An incoming MMS message with an <code>image/jpeg</code> part and a <code>text/plain</code> part with message 'Test':</p>
|
<p>An incoming MMS message with an <code>image/jpeg</code> part and a <code>text/plain</code> part with message 'Test':</p>
|
||||||
@ -216,6 +216,11 @@ The following parameters are sent in all POST requests from EnvayaSMS:
|
|||||||
the server may receive the same log message multiple times.
|
the server may receive the same log message multiple times.
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
|
<dt>"network" ::= <text></dt>
|
||||||
|
<dd>
|
||||||
|
The phone's current type of internet connectivity. Typically this is either "MOBILE" or "WIFI".
|
||||||
|
</dd>
|
||||||
|
|
||||||
<dt>"action" ::= "outgoing" | "incoming" | "send_status" | "device_status" | "test" </dt>
|
<dt>"action" ::= "outgoing" | "incoming" | "send_status" | "device_status" | "test" </dt>
|
||||||
<dd>
|
<dd>
|
||||||
The request action determines the purpose of the HTTP request:
|
The request action determines the purpose of the HTTP request:
|
||||||
@ -310,6 +315,12 @@ Additional parameters sent in POST requests with <code>action=incoming</code>:
|
|||||||
<dd>
|
<dd>
|
||||||
The timestamp of the incoming message, in milliseconds since midnight, January 1, 1970 UTC.
|
The timestamp of the incoming message, in milliseconds since midnight, January 1, 1970 UTC.
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
|
<dt>"age" ::= <long integer></dt>
|
||||||
|
<dd>
|
||||||
|
The length of time between when the incoming message was received by the phone, and when the message was transmitted to the server, in milliseconds.
|
||||||
|
</dd>
|
||||||
|
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
Additional parameters sent in POST requests with <code>action=incoming</code> and <code>message_type=mms</code>:
|
Additional parameters sent in POST requests with <code>action=incoming</code> and <code>message_type=mms</code>:
|
||||||
@ -368,7 +379,7 @@ Additional parameters sent in POST requests with <code>action=send_status</code>
|
|||||||
of an <a href='#sms'>sms</a> tag in a previous XML response from the server).
|
of an <a href='#sms'>sms</a> tag in a previous XML response from the server).
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt>"status" ::= "queued" | "failed" | "sent"</dt>
|
<dt>"status" ::= "queued" | "failed" | "cancelled" | "sent"</dt>
|
||||||
<dd>
|
<dd>
|
||||||
The current status of the outgoing message.
|
The current status of the outgoing message.
|
||||||
</dd>
|
</dd>
|
||||||
@ -409,6 +420,12 @@ Additional parameters sent in POST requests with <code>action=device_status</cod
|
|||||||
<dd>
|
<dd>
|
||||||
The phone's battery level is now at least 20% (after dropping below 15%).
|
The phone's battery level is now at least 20% (after dropping below 15%).
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
|
<dt>"send_limit_exceeded":</dt>
|
||||||
|
<dd>
|
||||||
|
EnvayaSMS is delaying sending outgoing messages because the rate limit for sending messages has been exceeded. (Installing additional expansion packs may be needed.)
|
||||||
|
</dd>
|
||||||
|
|
||||||
</dl>
|
</dl>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
@ -420,8 +437,9 @@ HTTP Response Format
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
For a successful request, the server should return HTTP status code 200.
|
For a successful request, the server should return HTTP status code 200.
|
||||||
If the signature check failed, the server should return status code 403.
|
Failed requests should return HTTP status codes between 400 and 499 inclusive.
|
||||||
Other status codes may be used to signify errors.
|
Failed requests may optionally return an error message to display in the phone logs, as
|
||||||
|
a text/xml response like <code><response><error>...</error></response></code>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h4>HTTP response for action=incoming and action=outgoing</h4>
|
<h4>HTTP response for action=incoming and action=outgoing</h4>
|
||||||
@ -430,13 +448,15 @@ Example:
|
|||||||
<pre>
|
<pre>
|
||||||
HTTP/1.1 200 OK
|
HTTP/1.1 200 OK
|
||||||
Content-Type: text/xml
|
Content-Type: text/xml
|
||||||
Content-Length: 189
|
Content-Length: 212
|
||||||
|
|
||||||
<?xml version='1.0' encoding='UTF-8'?>
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<response>
|
||||||
<messages>
|
<messages>
|
||||||
<sms id='1540' to='16505551213'>This is a test</sms>
|
<sms id='1540' to='16505551213'>This is a test</sms>
|
||||||
<sms id='1541' to='16505551214'>This is a another test message.</sms>
|
<sms id='1541' to='16505551214'>This is a another test message.</sms>
|
||||||
</messages>
|
</messages>
|
||||||
|
</response>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
Specification:
|
Specification:
|
||||||
@ -444,9 +464,24 @@ Specification:
|
|||||||
The <code>Content-Type</code> header should be <code>text/xml</code>, with the content as follows:
|
The <code>Content-Type</code> header should be <code>text/xml</code>, with the content as follows:
|
||||||
</p>
|
</p>
|
||||||
<dl>
|
<dl>
|
||||||
<dt><messages></dt>
|
<dt><response></dt>
|
||||||
<dd>
|
<dd>
|
||||||
The root XML element.
|
The root XML element.
|
||||||
|
<br /><br />
|
||||||
|
Content:
|
||||||
|
<dl>
|
||||||
|
<dt><messages> (optional if request successful)</dt>
|
||||||
|
<dd>The SMS messages to send.</dd>
|
||||||
|
</dl>
|
||||||
|
<dl>
|
||||||
|
<dt><error> (optional if request failed)</dt>
|
||||||
|
<dd>An error message.</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt><messages></dt>
|
||||||
|
<dd>
|
||||||
|
A container for the messages to send.
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
Attributes:
|
Attributes:
|
||||||
@ -515,6 +550,7 @@ OK
|
|||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
The response content for <code>send_status</code> requests is currently undefined and ignored.
|
|
||||||
HTTP status code 200 signifies success, and anything else signifies failure.
|
HTTP status code 200 signifies success, and anything else signifies failure.
|
||||||
|
The response content for successful <code>send_status</code> requests is currently ignored, except that
|
||||||
|
requests with HTTP code 400-499 may return an error message as text/xml.
|
||||||
</p>
|
</p>
|
||||||
|
@ -41,8 +41,7 @@
|
|||||||
|
|
||||||
<h2>Community</h2>
|
<h2>Community</h2>
|
||||||
|
|
||||||
|
<h4>Discussion Forum</h4>
|
||||||
<h4>Discussion Forum</h4>
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
For general discussion, questions, or feedback about EnvayaSMS, use the public forum at
|
For general discussion, questions, or feedback about EnvayaSMS, use the public forum at
|
||||||
@ -84,8 +83,6 @@ Facebook: <a href='http://facebook.com/envaya'>Envaya</a>
|
|||||||
To contact the EnvayaSMS developers privately, email <a href='sms-developers@envaya.org'>sms-developers@envaya.org</a>.
|
To contact the EnvayaSMS developers privately, email <a href='sms-developers@envaya.org'>sms-developers@envaya.org</a>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
get the source code on GitHub : <a href="http://github.com/youngj/EnvayaSMS">youngj/EnvayaSMS</a>
|
get the source code on GitHub : <a href="http://github.com/youngj/EnvayaSMS">youngj/EnvayaSMS</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -41,8 +41,7 @@
|
|||||||
|
|
||||||
<h2>Frequently Asked Questions</h2>
|
<h2>Frequently Asked Questions</h2>
|
||||||
|
|
||||||
|
<ul class='faq_links'>
|
||||||
<ul class='faq_links'>
|
|
||||||
<li>
|
<li>
|
||||||
<a href='#q_alternative'>Why not use X as an SMS gateway instead of an Android app? (where X = Twilio, Tropo, Clickatell, FrontlineSMS, RapidSMS, Kannel, etc.)</a>
|
<a href='#q_alternative'>Why not use X as an SMS gateway instead of an Android app? (where X = Twilio, Tropo, Clickatell, FrontlineSMS, RapidSMS, Kannel, etc.)</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -41,6 +41,19 @@
|
|||||||
|
|
||||||
<h2>History</h2>
|
<h2>History</h2>
|
||||||
|
|
||||||
|
Verson 2.0.5 (2012/03/15)
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Option to notify server of incoming calls (enabling users to access simple SMS services for free by calling and hanging up, then receiving a SMS reply)
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Send additional information from phone to server, such as the phone's current network type, age (delay) of incoming messages, device manufacturer, model, and SDK version
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Various bug fixes
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
EnvayaSMS for Drupal (2012/03/04)
|
EnvayaSMS for Drupal (2012/03/04)
|
||||||
|
|
||||||
|
@ -87,13 +87,13 @@ HTTP Request Format
|
|||||||
<pre>
|
<pre>
|
||||||
POST /sg/app HTTP/1.1
|
POST /sg/app HTTP/1.1
|
||||||
X-Request-Signature: sAemG31uRllk/K9xck2WRNaF/WI=
|
X-Request-Signature: sAemG31uRllk/K9xck2WRNaF/WI=
|
||||||
Content-Length: 120
|
Content-Length: 140
|
||||||
Content-Type: application/x-www-form-urlencoded
|
Content-Type: application/x-www-form-urlencoded
|
||||||
Host: 192.168.70.1:3000
|
Host: 192.168.70.1:3000
|
||||||
Connection: Keep-Alive
|
Connection: Keep-Alive
|
||||||
|
|
||||||
from=6505551234&message_type=sms&message=test&version=2&phone_number=16505551212
|
from=6505551234&message_type=sms&message=test&version=2&phone_number=16505551212
|
||||||
&action=incoming×tamp=1317506831000
|
&action=incoming&age=23&network=WIFI&timestamp=1317506831000
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>An incoming MMS message with an <code>image/jpeg</code> part and a <code>text/plain</code> part with message 'Test':</p>
|
<p>An incoming MMS message with an <code>image/jpeg</code> part and a <code>text/plain</code> part with message 'Test':</p>
|
||||||
@ -256,6 +256,11 @@ The following parameters are sent in all POST requests from EnvayaSMS:
|
|||||||
the server may receive the same log message multiple times.
|
the server may receive the same log message multiple times.
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
|
<dt>"network" ::= <text></dt>
|
||||||
|
<dd>
|
||||||
|
The phone's current type of internet connectivity. Typically this is either "MOBILE" or "WIFI".
|
||||||
|
</dd>
|
||||||
|
|
||||||
<dt>"action" ::= "outgoing" | "incoming" | "send_status" | "device_status" | "test" </dt>
|
<dt>"action" ::= "outgoing" | "incoming" | "send_status" | "device_status" | "test" </dt>
|
||||||
<dd>
|
<dd>
|
||||||
The request action determines the purpose of the HTTP request:
|
The request action determines the purpose of the HTTP request:
|
||||||
@ -350,6 +355,12 @@ Additional parameters sent in POST requests with <code>action=incoming</code>:
|
|||||||
<dd>
|
<dd>
|
||||||
The timestamp of the incoming message, in milliseconds since midnight, January 1, 1970 UTC.
|
The timestamp of the incoming message, in milliseconds since midnight, January 1, 1970 UTC.
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
|
<dt>"age" ::= <long integer></dt>
|
||||||
|
<dd>
|
||||||
|
The length of time between when the incoming message was received by the phone, and when the message was transmitted to the server, in milliseconds.
|
||||||
|
</dd>
|
||||||
|
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
Additional parameters sent in POST requests with <code>action=incoming</code> and <code>message_type=mms</code>:
|
Additional parameters sent in POST requests with <code>action=incoming</code> and <code>message_type=mms</code>:
|
||||||
@ -408,7 +419,7 @@ Additional parameters sent in POST requests with <code>action=send_status</code>
|
|||||||
of an <a href='#sms'>sms</a> tag in a previous XML response from the server).
|
of an <a href='#sms'>sms</a> tag in a previous XML response from the server).
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt>"status" ::= "queued" | "failed" | "sent"</dt>
|
<dt>"status" ::= "queued" | "failed" | "cancelled" | "sent"</dt>
|
||||||
<dd>
|
<dd>
|
||||||
The current status of the outgoing message.
|
The current status of the outgoing message.
|
||||||
</dd>
|
</dd>
|
||||||
@ -449,6 +460,12 @@ Additional parameters sent in POST requests with <code>action=device_status</cod
|
|||||||
<dd>
|
<dd>
|
||||||
The phone's battery level is now at least 20% (after dropping below 15%).
|
The phone's battery level is now at least 20% (after dropping below 15%).
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
|
<dt>"send_limit_exceeded":</dt>
|
||||||
|
<dd>
|
||||||
|
EnvayaSMS is delaying sending outgoing messages because the rate limit for sending messages has been exceeded. (Installing additional expansion packs may be needed.)
|
||||||
|
</dd>
|
||||||
|
|
||||||
</dl>
|
</dl>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
@ -460,8 +477,9 @@ HTTP Response Format
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
For a successful request, the server should return HTTP status code 200.
|
For a successful request, the server should return HTTP status code 200.
|
||||||
If the signature check failed, the server should return status code 403.
|
Failed requests should return HTTP status codes between 400 and 499 inclusive.
|
||||||
Other status codes may be used to signify errors.
|
Failed requests may optionally return an error message to display in the phone logs, as
|
||||||
|
a text/xml response like <code><response><error>...</error></response></code>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h4>HTTP response for action=incoming and action=outgoing</h4>
|
<h4>HTTP response for action=incoming and action=outgoing</h4>
|
||||||
@ -470,13 +488,15 @@ Example:
|
|||||||
<pre>
|
<pre>
|
||||||
HTTP/1.1 200 OK
|
HTTP/1.1 200 OK
|
||||||
Content-Type: text/xml
|
Content-Type: text/xml
|
||||||
Content-Length: 189
|
Content-Length: 212
|
||||||
|
|
||||||
<?xml version='1.0' encoding='UTF-8'?>
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<response>
|
||||||
<messages>
|
<messages>
|
||||||
<sms id='1540' to='16505551213'>This is a test</sms>
|
<sms id='1540' to='16505551213'>This is a test</sms>
|
||||||
<sms id='1541' to='16505551214'>This is a another test message.</sms>
|
<sms id='1541' to='16505551214'>This is a another test message.</sms>
|
||||||
</messages>
|
</messages>
|
||||||
|
</response>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
Specification:
|
Specification:
|
||||||
@ -484,9 +504,24 @@ Specification:
|
|||||||
The <code>Content-Type</code> header should be <code>text/xml</code>, with the content as follows:
|
The <code>Content-Type</code> header should be <code>text/xml</code>, with the content as follows:
|
||||||
</p>
|
</p>
|
||||||
<dl>
|
<dl>
|
||||||
<dt><messages></dt>
|
<dt><response></dt>
|
||||||
<dd>
|
<dd>
|
||||||
The root XML element.
|
The root XML element.
|
||||||
|
<br /><br />
|
||||||
|
Content:
|
||||||
|
<dl>
|
||||||
|
<dt><messages> (optional if request successful)</dt>
|
||||||
|
<dd>The SMS messages to send.</dd>
|
||||||
|
</dl>
|
||||||
|
<dl>
|
||||||
|
<dt><error> (optional if request failed)</dt>
|
||||||
|
<dd>An error message.</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt><messages></dt>
|
||||||
|
<dd>
|
||||||
|
A container for the messages to send.
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
Attributes:
|
Attributes:
|
||||||
@ -555,11 +590,11 @@ OK
|
|||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
The response content for <code>send_status</code> requests is currently undefined and ignored.
|
|
||||||
HTTP status code 200 signifies success, and anything else signifies failure.
|
HTTP status code 200 signifies success, and anything else signifies failure.
|
||||||
|
The response content for successful <code>send_status</code> requests is currently ignored, except that
|
||||||
|
requests with HTTP code 400-499 may return an error message as text/xml.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
get the source code on GitHub : <a href="http://github.com/youngj/EnvayaSMS">youngj/EnvayaSMS</a>
|
get the source code on GitHub : <a href="http://github.com/youngj/EnvayaSMS">youngj/EnvayaSMS</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -41,8 +41,7 @@
|
|||||||
|
|
||||||
<h2>Testing EnvayaSMS</h2>
|
<h2>Testing EnvayaSMS</h2>
|
||||||
|
|
||||||
|
<p>
|
||||||
<p>
|
|
||||||
<img src='/media/avd.png' width='242' height='227' style='float:right;padding-left:10px;' />
|
<img src='/media/avd.png' width='242' height='227' style='float:right;padding-left:10px;' />
|
||||||
If you don't yet have an Android phone, you can test EnvayaSMS in an emulated phone on your computer.
|
If you don't yet have an Android phone, you can test EnvayaSMS in an emulated phone on your computer.
|
||||||
</p>
|
</p>
|
||||||
@ -100,7 +99,6 @@ Of course, you can also test EnvayaSMS by connecting a real Android phone to you
|
|||||||
For more information, see the <a href='/faq/#q_tunnel'>FAQ</a>.
|
For more information, see the <a href='/faq/#q_tunnel'>FAQ</a>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
get the source code on GitHub : <a href="http://github.com/youngj/EnvayaSMS">youngj/EnvayaSMS</a>
|
get the source code on GitHub : <a href="http://github.com/youngj/EnvayaSMS">youngj/EnvayaSMS</a>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user