api-php-sdk/examples/send-sms.php
2026-11-28 15:28:04 +02:00

14 lines
370 B
PHP

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