Skip to content

GetPendingMessageCount

Returns the number of messages currently waiting in queue at our gateway. Returns -1 on error.

// uses JQuery library
var postUrl = "https://secure.smsgateway.ca/services/account.svc/"
+ accountKey "/PendingMessageCount"
$.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/account.svc/:accountKey/PendingMessageCount
ParameterDescriptionLocation
AccountKeyYour Swift SMS Gateway account keyURL

Returns

integer