Overview

Nuntium PHP API

Provides access to the Nuntium Public API in PHP.

Dependencies

The cURL PHP module must be installed and enabled.

Examples

$api = new Nuntium('http://nuntium.instedd.org', 'account', 'application', 'password');
$countries = $api->getCountries();
$carriers = $api->getCarriers();

$api->createChannel(array(
      'name' => 'my_channel',
      'kind' => 'qst_server',
      'protocol' => 'sms',
      'direction' => 'bidirectional',
      'enabled' => true,
      'priority' => 10,
      'configuration' => array('password' => 'secret')
      );

$response = $api->sendAO(array('from' => 'sms://1234', 'to' => 'sms://5678', 'body' => 'Hello!'));
echo $response->token;