SDKs
| Language | Package | Install |
|---|---|---|
| Python | sendafrica | pip install sendafrica |
| Node.js / TypeScript | sendafrica | npm install sendafrica |
| PHP | sendafrica/sendafrica-php | composer require sendafrica/sendafrica-php |
All SDKs provide synchronous and async client support, type-safe API responses, automatic retry handling, and comprehensive error handling.
Quick Start
Python
from sendafrica import SendAfrica
client = SendAfrica(api_key="SA-your-key")
balance = client.credits.get_balance()
print(f"Credits: {balance.credits}")Node.js / TypeScript
import { SendAfrica } from 'sendafrica';
const client = new SendAfrica({ apiKey: 'SA-your-key' });
const balance = await client.credits.getBalance();
console.log(`Credits: ${balance.credits}`);PHP
$client = new SendAfrica\Client(['api_key' => 'SA-your-key']);
$balance = $client->credits->getBalance();
echo "Credits: " . $balance->credits;Last updated on