Skip to content

SendMultiRoute

Sends an SMS message to the given phone number using two upstream routes to maximize chances for delivery of extremely high priority messages.

// uses JQuery library
var postUrl =
'https://secure.smsgateway.ca/services/message.svc/' +
accountKey +
'/' +
destinationNumber +
'/Multi';
var body = JSON.stringify({
MessageBody: 'Message Body',
Reference: 'Reference Number',
});
$.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/:accountKey/:destinationNumber/Multi

ParameterDescriptionLocation
AccountKeyYour Swift SMS Gateway account keyURL
DestinationNumberCell number to receive the text messageURL
MessageBodyBody of the message to sendBODY
ReferenceInternal Reference IDBODY

Returns

string

See (SendMessage)