Skip to content

SendUnicodeMessage

Sends an SMS message containing Unicode characters to the given phone number. Limit of 70 characters per message. Useful for sending accented characters.

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

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).