Skip to content

Commit

Permalink
Update website to reflect changes in message result API
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedol committed Nov 12, 2014
1 parent 62dd613 commit 61ee021
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions website-src/_root/developers.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,10 @@ <h2>Instructions</h2>
"95df126b-ee80-4175-a6fb"
]
}</pre>
<p>To send SMS status delivery report back to the server, SMSsync will make a <code>GET ?task=results</code> to the server and should receive a list
<p>To send SMS status delivery report back to the server, SMSsync will make a <code>GET ?task=result</code> to the server and should receive a list
of message UUIDs that are waiting to receive delivery reports. The server should send the JSON response below</p>
<pre class="prettyprint linenums">
POST /smssync?task=results HTTP/1.1
POST /smssync?task=result HTTP/1.1
Host: testserver.local

HTTP/1.1 200 OK
Expand All @@ -220,9 +220,9 @@ <h2>Instructions</h2>
"95df126b-ee80-4175-a6fb"
]
}</pre>
<p>Then SMSsync will send delivery reports for the message uuids above as a POST request<code>POST ?task=results</code> with the JSON response below</p>
<p>Then SMSsync will send delivery reports for the message uuids above as a POST request<code>POST ?task=result</code> with the JSON response below</p>
<pre class="prettyprint linenums">
POST /smssync?task=results HTTP/1.1
POST /smssync?task=result HTTP/1.1
Host: testserver.local
Content-Type: application/json; charset=utf-8

Expand Down Expand Up @@ -527,7 +527,7 @@ <h2>A sample web service</h2>

if($_SERVER['REQUEST_METHOD'] === 'POST')
{
if($_SERVER['QUERY_STRING'] === 'task=results')
if($_SERVER['QUERY_STRING'] === 'task=result')
{
get_sms_delivery_report();
}
Expand Down

0 comments on commit 61ee021

Please sign in to comment.