PHP Classes

File: example

Recommend this page to a friend!
  Classes of Nuno Chaves   Bulk SMS   example   Download  
File: example
Role: Example script
Content type: text/plain
Description: example
Class: Bulk SMS
Send SMS using the BulkSMS api 2.0
Author: By
Last change:
Date: 15 years ago
Size: 543 bytes
 

Contents

Class file image Download
<?php
   
include_once('class.BulkSms.php');

   
   
$bulkSms = new BulkSms( 'user', 'user', '351' );
   
    if(
$bulkSms->sendSms("test message", "961234567") ){
        echo
"Message Sent: <br>
               Status Code: "
.$bulkSms->status_code ." <br>
               Status Description: "
.$bulkSms->status_description."<br><br>";
    }
    else{
        echo
"Error Sending Message: <br>
               Status Code: "
.$bulkSms->status_code ." <br>
               Status Description: "
.$bulkSms->status_description."<br><br>";
    }
    echo
"Credits Remaining: ".$bulkSms->getCredits();

?>