SendMessageViaDedicatedNumberExtended
Sends an SMS message to the given phone number from the specified sender number.
The SenderNumber must be a dedicated long code associated with your account.
// uses JQuery library/** NOT CURRENTLY AVAILABLE **/<?php// using SOAP Module - http://ca3.php.net/soap
class SMSParam { public $CellNumber; public $AccountKey; public $MessageBody; public $SenderNumber; public $Reference;}
$client = new SoapClient('https://secure.smsgateway.ca/sendsms.asmx?WSDL');$parameters = new SMSParam;
$parameters -> CellNumber = destinationNumber;$parameters -> AccountKey = accountKey;$parameters -> MessageBody = "This is a demonstration of SMSGateway.ca using PHP5.";$parameters -> SenderNumber = senderNumber;$parameters -> Reference = reference;
$Result = $client->SendMessageViaDedicatedNumberExtended($parameters);?>' Service Reference (SOAP)Using client = New SwiftSMS.SendSMSSoapClient Dim response = client.SendMessageViaDedicatedNumberExtended(destinationNumber, messageBody, accountKey, reference, senderNumber)End Using
' WebClient (REST)'** NOT CURRENTLY AVAILABLE **'HTTP POST:### NOT CURRENTLY AVAILABLE ###// Service Reference / SOAPusing (var client = new SwiftNew.SendSMSSoapClient()){ var response = client.SendMessageViaDedicatedNumberExtended(destinationNumber, messageBody, accountKey, reference, senderNumber);}
// Web Client / REST/** NOT CURRENTLY AVAILABLE **/HTTP Request
| Parameter | Required | Location |
|---|---|---|
| AccountKey | Your Swift SMS Gateway account key | URL |
| DestinationNumber | Cell number to receive the text message | URL |
| MessageBody | Body of the message to send | BODY |
| Reference | Internal Reference ID | BODY |
| SenderNumber | Sender ID (Long code number) to send the message via | BODY |
Returns
SMSSendMessageResponse