14 lines
364 B
PHP
14 lines
364 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
require __DIR__ . '/../autoload.php'; // with Composer: require 'vendor/autoload.php';
|
|
|
|
use MozOutMz\Client;
|
|
use MozOutMz\ApiException;
|
|
|
|
// Key from MOZOUT_API_KEY.
|
|
$client = new Client();
|
|
|
|
// Send one SMS.
|
|
$sms = $client->sms->messagesCreate(['number' => '+258841234567', 'text' => 'Your order is ready.']);
|
|
print_r($sms['data']);
|