Skip to content

HLRLookupBulk

Returns details about the carrier of the given North American phone numbers.

// uses JQuery library
var postUrl = "https://secure.smsgateway.ca/services/message.svc/"
"HLRLookupBulk/" + accountKey;
var body = JSON.stringify({
phoneNumbers: [destinationNumber, destinationNumber, ...]
});
$.ajax({
url: postUrl,
method: "POST",
contentType: "application/json;charset=UTF-8",
data: body
}).done(function(response) {
alert(response);
}).error(function (xhr, textStatus, errorThrown) {
alert (xhr.responseText);
});

HTTP Request

POST:
/services/message.svc/HLRLookupBulk/:accountKey
ParameterDescriptionLocation
AccountKeyYour Swift SMS Gateway account keyURL
phoneNumbersArray of phone numbers to perform a HLR lookup onURL