2017 © Pedro PelĂĄez
 

library fabricadesms

SDK to consume the fabricadesms.com.br API

image

ericmaicon/fabricadesms

SDK to consume the fabricadesms.com.br API

  • Monday, April 27, 2015
  • by ericmaicon
  • Repository
  • 1 Watchers
  • 1 Stars
  • 69 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

FĂĄbrica de SMS SDK integration

, (*1)

About:

This is a simple SDK to consume the FĂĄbrica de SMS API., (*2)

, (*3)

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');

The Versions

27/04 2015

dev-master

9999999-dev

SDK to consume the fabricadesms.com.br API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Eric Maicon

27/04 2015

v1.0.3

1.0.3.0

SDK to consume the fabricadesms.com.br API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Eric Maicon

19/04 2015

v1.0.2

1.0.2.0

SDK to consume the fabricadesms.com.br API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Eric Maicon

15/04 2015

v1.0.1

1.0.1.0

SDK to consume the fabricadesms.com.br API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Eric Maicon

15/04 2015

v1.0

1.0.0.0

SDK to consume the fabricadesms.com.br API

  Sources   Download

The Requires

  • php >=5.4.0

 

The Development Requires

by Eric Maicon