Created
July 26, 2017 16:45
-
-
Save ratulcse10/15e58ccf376660da368bd20240dd54c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Set OnnoromSMS Login Details | |
$userNAME = ""; | |
$userPASSWORD= ""; | |
//Set Sending Mobile Number and Message | |
$msg = ""; | |
$sendingMobile = ""; // example: 01911225298 | |
try | |
{ | |
$soapClient = new SoapClient("https://api2.onnorokomSMS.com/sendSMS.asmx?wsdl"); $paramArray = array( | |
'userName'=>$userNAME, | |
'userPassword'=>$userPASSWORD, 'mobileNumber'=> $mobile, 'smsText'=>$msg, 'type'=>"TEXT", | |
'maskName'=> "InfancyIT", 'campaignName'=>'', | |
); | |
$value = $soapClient->__call("OneToOne", array($paramArray)); | |
} | |
catch (Exception $e) { | |
echo $e; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment