PHP Classes

File: creategroup.php

Recommend this page to a friend!
  Classes of Andy Dixon   Textlocal   creategroup.php   Download  
File: creategroup.php
Role: Example script
Content type: text/plain
Description: Create Group example
Class: Textlocal
Send SMS or MMS messages using Textlocal API
Author: By
Last change:
Date: 10 years ago
Size: 293 bytes
 

Contents

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

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

$groupName = 'New group';

try {
   
$result = $textlocal->createGroup($groupName);
   
print_r($result);
} catch (
Exception $e) {
    die(
'Error: ' . $e->getMessage());
}
?>