Login   Register  
PHP Classes
elePHPant
Icontem

File: sendsms.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andy Dixon  >  Textlocal  >  sendsms.php  >  Download  
File: sendsms.php
Role: Example script
Content type: text/plain
Description: Send SMS Example
Class: Textlocal
Send SMS or MMS messages using Textlocal API
Author: By
Last change:
Date: 2013-07-15 23:34
Size: 369 bytes
 

Contents

Class file image Download
<?php
require('../textlocal.class.php');

$textlocal = new Textlocal('demo@txtlocal.com''apidemo123');

$numbers = array(447123456789);
$sender 'Textlocal';
$message 'This is a message';

try {
    
$result $textlocal->sendSms($numbers$message$sender);
    
print_r($result);
} catch (
Exception $e) {
    die(
'Error: ' $e->getMessage());
}
?>