Skip to content

GetSentMessagesByReferenceAfterID

Returns an array of (at most 1000) sent SMS Messages with the given reference value which also have IDs greater than the given one.

// uses JQuery library
var postUrl =
'https://secure.smsgateway.ca/services/message.svc/' +
accountKey +
'/referenceafterid/' +
messageNumber +
'/' +
encodeURI(reference);
$.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/message.svc/:accountKey/referenceafterid/:messageNumber/:reference
ParameterDescriptionLocation
accountKeyYour Swift SMS Gateway account keyURL
messageNumberThe unique message number to retrieve records afterURL
referenceThe reference supplied on sendURL

Returns

Array of SMSOutgoingMessage