GetOutgoingMessage
Get the status of an outgoing message by supplying the message ID and account key
// uses JQuery libraryvar postUrl =  'https://secure.smsgateway.ca/services/message.svc/' +  accountKey +  '/id/' +  messageId;
$.ajax({  url: postUrl,  method: 'GET',  contentType: 'application/json;charset=UTF-8',})  .done(function (response) {    alert(response);  })  .error(function (xhr, textStatus, errorThrown) {    alert(xhr.responseText);  });<?php// using SOAP Module - http://ca3.php.net/soap
class SMSParam {    public $AccountKey;    public $MessageID;}
$client = new SoapClient('https://secure.smsgateway.ca/sendsms.asmx?WSDL');$parameters = new SMSParam;
$parameters -> AccountKey = accountKey;$parameters -> MessageID = messageId;
$Result = $client->GetOutgoingMessage($parameters);?>' Service Reference (SOAP)Using client = New SwiftSMS.SendSMSSoapClient    Dim response = client.GetOutgoingMessage(messageId, accountKey)End Using
' WebClient (REST)Dim url = String.Format("https://secure.smsgateway.ca/services/message.svc/{0}/id/{1}",                        accountKey, messageId)
Using wClient = New Net.WebClient    wClient.Encoding = New UTF8Encoding()    wClient.Headers.Add(HttpRequestHeader.ContentType, "application/json")
    Dim wResponse = wClient.DownloadString(url)End Usingcurl "https://secure.smsgateway.ca/services/incoming.svc/[accountKey]/id/[messageId]"// Service Reference / SOAPusing (var client = new SwiftSecure.SendSMSSoapClient()){    var outgoingMessage = client.GetOutgoingMessage(messageId, accountKey);}
// Web Client / RESTvar url = string.Format("https://secure.smsgateway.ca/services/message.svc/{0}/id/{1}",    accountKey, messageId);
using (var wClient = new System.Net.WebClient()){    wClient.Encoding = Encoding.UTF8;    wClient.Headers.Add(HttpRequestHeader.ContentType, "application/json");
    var outgoingMessage = wClient.DownloadString(url);}HTTP Request
GET:
/services/message.svc/:accountKey/id/:messageId| Parameter | Description | Location | 
|---|---|---|
| accountKey | Your Swift SMS Gateway account key | URL | 
| messageId | The unique Message ID of the SMS to retrieve the information for | URL |