Login   Register  
PHP Classes
elePHPant
Icontem

File: sendsms-group.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-group.php  >  Download  
File: sendsms-group.php
Role: Example script
Content type: text/plain
Description: Send SMS to a group
Class: Textlocal
Send SMS or MMS messages using Textlocal API
Author: By
Last change:
Date: 1 year ago
Size: 367 bytes
 

Contents

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

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

$groupId 228839;
$sender 'Textlocal';
$message 'This is a group message';

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