dev-master / 0.1.x-dev 2015-01-18 02:10 UTC

README

Latest Version Software License Build Status Code Coverage Quality Score HHVM Status Total Downloads Dependency Status

SeeMe SMS Gateway API client.

Install

Via Composer

$ composer require firstcomputer/seeme

Usage

use First\Seeme\Seeme;
use Ivory\HttpAdapter\GuzzleHttpHttpAdapter;

$seeme = new Seeme(new GuzzleHttpHttpAdapter, 'API_KEY');


// Send a message
// Last four arguments are optional
$seeme->message()->send('362012344567', 'Message', 'Sender', 'Reference', 'all', 'http://callback.url');


// Get the balance
$balance = $seeme->balance()->get();

$amount = $balance->getBalance();
$currency = $balance->getCurrency();


// Set an IP address
// Accepts string or long
$seeme->ip()->set('192.168.0.1');

For details (and all possible parameters, returned values) see the official documentation.

Testing

$ phpspec run

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.