Skip to content

GetIncomingMessagesByReference

Get a list of incoming messages which match the given reference

// uses JQuery library
var postUrl =
'https://secure.smsgateway.ca/services/incoming.svc/' +
accountKey +
'/reference/' +
reference +
'/count/' +
messageCount;
$.ajax({
url: postUrl,
method: 'GET',
contentType: 'application/json;charset=UTF-8',
})
.done(function (response) {
alert(response);
})
.error(function (xhr, textStatus, errorThrown) {
alert(xhr.responseText);
});

HTTP Request

GET:

services/incoming.svc/:accountKey/reference/:reference/count/:messageCount
ParameterDescriptionLocation
AccountKeyYour Swift SMS Gateway account keyURL
ReferenceThe reference of sent messages to retrieve replies toURL
MessageCountThe number of messages to retrieveURL

Returns

Array of SMSIncomingMessage.