Skip to Content
SDKsOverview

SDKs

LanguagePackageInstall
Pythonsendafricapip install sendafrica
Node.js / TypeScriptsendafricanpm install sendafrica
PHPsendafrica/sendafrica-phpcomposer 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