<?php
# Sample execution using the mycantos class.
include_once('mycantos-sms.php'); # include the mycantos class
$msg= new MyCantos('mycookie'); # create instance of the class
echo $msg->login('username', 'Password'); # login using mycantos username and password (echo is optional)
echo $msg->sendSMS('9894113980', "This is a test message"); # send sms by providing mobile number and message (echo is optional) message should be less than 118 characters.
print_r($msg); # print the object (for debugging)
?>
|