SendBulkUnicodeMessage
Sends an SMS Unicode enabled message to all the cell numbers provided (maximum of 5000). Returns the number of messages successfully queued, or an error message on failure.
// uses JQuery library/** NOT CURRENTLY AVAILABLE **/<?php// using SOAP Module - http://ca3.php.net/soap
class SMSParam { public $AccountKey; public $MessageBody; public $Reference; public $CellNumbers;}
$client = new SoapClient('https://secure.smsgateway.ca/sendsms.asmx?WSDL');$parameters = new SMSParam;
$parameters -> AccountKey = accountKey;$parameters -> MessageBody = "This is a demonstration of SMSGateway.ca using PHP5.";$parameters -> Reference = reference;$parameters -> CellNumber = (destinationNumber, destinationNumber, ...);
$Result = $client->SendBulkUnicodeMessage($parameters);?>Dim numbers = New ArrayOfString()numbers.Add(destinationNumber)numbers.Add(destinationNumber)' Service Reference (SOAP)Using client = New SwiftSMS.SendSMSSoapClient Dim response = client.SendBulkUnicodeMessage(accountKey, messageBody, reference, numbers)End Using
' WebClient (REST)' NOT CURRENTLY AVAILABLEHTTP POST:# NOT CURRENTLY AVAILABLE #var numbers = new SwiftSMS.ArrayOfString { destinationNumber, destinationNumber };// Service Reference / SOAPusing (var client = new SwiftSMS.SendSMSSoapClient()){ var response = client.SendBulkUnicodeMessage(accountKey, messageBody, reference, numbers);}
// Web Client / REST/** NOT CURRENTLY AVAILABLE **/HTTP Request
| Parameter | Description | Location |
|---|---|---|
| AccountKey | Your Swift SMS Gateway account key | URL |
| MessageBody | Body of the message to send | BODY |
| Reference | Internal Reference ID | BODY |
| CellNumbers | Array of cell numbers to deliver SMS messages to | BODY |
Returns
string
If successful, will return x messages queued successfully
If unsuccessful, will return an error message: (See (SendMessage))