SDKs

VsLink360 provides SDKs for Python and PHP to help developers integrate the API quickly and easily. Below are examples for each:

Python SDK

Install the SDK via pip:

pip install vslink360-sdk

Example Usage:


from vslink360 import VsLink360

client = VsLink360(api_key="YOUR_API_KEY", secret_key="YOUR_SECRET_KEY")

# Check wallet balance
balance = client.get_balance()
print(balance)

# Recharge Airtime
response = client.recharge_airtime(phone_number="08012345678", network="MTN", amount=500)
print(response)
        

PHP SDK

Install the SDK using Composer:

composer require vslink360/sdk

Example Usage:


require_once 'vendor/autoload.php';

use VsLink360\VsLink360;

$client = new VsLink360('YOUR_API_KEY', 'YOUR_SECRET_KEY');

// Check wallet balance
$balance = $client->getBalance();
print_r($balance);

// Recharge Airtime
$response = $client->rechargeAirtime('08012345678', 'MTN', 500);
print_r($response);