I was wondering if a future version would allow you to
pass the parameters for API from within our own code.
For example, I modify your class by renaming the
function "SMS" to "Init_SMS", then code as follows:
$mysms = new sms();
$mysms->api_id = "nnnnnnnnn";
$mysms->user = "XXXXXX";
$mysms->password = "YYYYYYY";
$mysms->use_ssl = true;
$mysms->sending_method = "curl";
This allows me to code several applications using the
same copy of your class.
Log in to post a comment.