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

14 lines
370 B
PHP

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