From 61ee021a997952a6ebbfeaf5879086ba32467c00 Mon Sep 17 00:00:00 2001 From: Henry Addo Date: Wed, 12 Nov 2014 11:55:12 +0900 Subject: [PATCH] Update website to reflect changes in message result API --- website-src/_root/developers.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/website-src/_root/developers.html b/website-src/_root/developers.html index 555a6ce87..34b24f99d 100644 --- a/website-src/_root/developers.html +++ b/website-src/_root/developers.html @@ -205,10 +205,10 @@

Instructions

"95df126b-ee80-4175-a6fb" ] } -

To send SMS status delivery report back to the server, SMSsync will make a GET ?task=results to the server and should receive a list +

To send SMS status delivery report back to the server, SMSsync will make a GET ?task=result 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

-POST /smssync?task=results HTTP/1.1
+POST /smssync?task=result HTTP/1.1
 Host: testserver.local
 
 HTTP/1.1 200 OK
@@ -220,9 +220,9 @@ 

Instructions

"95df126b-ee80-4175-a6fb" ] }
-

Then SMSsync will send delivery reports for the message uuids above as a POST requestPOST ?task=results with the JSON response below

+

Then SMSsync will send delivery reports for the message uuids above as a POST requestPOST ?task=result with the JSON response below

-POST /smssync?task=results HTTP/1.1
+POST /smssync?task=result HTTP/1.1
 Host: testserver.local
 Content-Type: application/json; charset=utf-8
 
@@ -527,7 +527,7 @@ 

A sample web service

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