ericmaicon / fabricadesms
SDK to consume the fabricadesms.com.br API
v1.0.3
2015-04-27 01:55 UTC
Requires
- php: >=5.4.0
Requires (Dev)
- phpunit/phpunit: 4.0.*
This package is not auto-updated.
Last update: 2025-01-22 09:10:14 UTC
README
About:
This is a simple SDK to consume the Fábrica de SMS API.
Usage with composer:
{
require: {
"ericmaicon/fabricadesms": "v1.0.1"
}
}
Your config array
array( 'login' => 'USERNAME', 'password' => 'PASSWORD', );
Send a SMS
require_once ('vendor/autoload.php'); $config = array( 'login' => 'USERNAME', 'password' => 'PASSWORD', ); $sms = new fabricadesms\Sms($config); $sms->sendSms(6281818181, 'message here');
Send Multiple SMS
require_once ('vendor/autoload.php'); $config = array( 'login' => 'USERNAME', 'password' => 'PASSWORD', ); $sms = new fabricadesms\Sms($config); $sms->sendMultipleSms(array( 6281818181, 6281818182 ), 'message here');
Schedule a SMS
require_once ('vendor/autoload.php'); $config = array( 'login' => 'USERNAME', 'password' => 'PASSWORD', ); $sms = new fabricadesms\Sms($config); $sms->scheduleSms(6281818181, 'message here', '24/12/2015', '16:00');
Get Balance
require_once ('vendor/autoload.php'); $config = array( 'login' => 'USERNAME', 'password' => 'PASSWORD', ); $sms = new fabricadesms\Sms($config); $sms->getBalance();
Get Campaign Status
require_once ('vendor/autoload.php'); $config = array( 'login' => 'USERNAME', 'password' => 'PASSWORD', ); $sms = new fabricadesms\Sms($config); $sms->getCampaignStatus($campaignId);
Get Response Status
require_once ('vendor/autoload.php'); $config = array( 'login' => 'USERNAME', 'password' => 'PASSWORD', ); $sms = new fabricadesms\Sms($config); $sms->getStatus('2015-04-01', '2014-05-01');