Skip to content

Instantly share code, notes, and snippets.

@multitel
Last active December 17, 2015 02:09
Show Gist options
  • Save multitel/5533913 to your computer and use it in GitHub Desktop.
Save multitel/5533913 to your computer and use it in GitHub Desktop.
SendSms (Text Message) SOAP function
<?php
include('/path/to/your/nusoap/nusoap.php');
$client = new nusoap_client('http://api.multitel.net/?wsdl','wsdl');
$parameters=array(
array(
"UserName" => 'yourusername',
"Password" => 'yourpassword',
"From" => '+15678912345',
"To" => '+4420123123123',
"Text" => 'Hi Dad!!',
)
);
$Res = array();
$Res = $client->call("SendSmsWs", $parameters,'urn:SendSmsWs');
print_r($Res);
exit;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment