(API Version 2.1)
A powerful PHP class for TM4B's API (version 2.1). Supports all features that TM4Bs API provides.
Only requires PHP >=5.3! HTTPS requests are supported natively if necessary!
That's all!
Take a look at the Wiki and TM4B's API documentation to get started.
Pull requests are welcome! Fix, improve, suggest!
You can also find me on Twitter: @nicoSWD
require 'TM4B/Autoloader.php';
$tm4b = new TM4B\API($username, $password);
$tm4b->setFrom('Nico');
// Broadcast an SMS message:
$response = $tm4b->broadcast('34612345678', 'Hi there');
// Check a message's status:
$status = $tm4b->checkStatus($response['broadcastID']);
// Check remaining credits:
$credits = $tm4b->checkCredit();
// ...Copyright (C) 2012 Nicolas Oelgart
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.