PHP

GetBalance

Obtains the available credits on an account.

GetBalance()

Parameters:

$results["Balance"] Return (Array) Number of remaining credits
$results["ErrorStatus"] Return (Array)

See ResultCodes

PHP Sample:

<?php

include 'IntelliSMS.php';

//Required php.ini settings:
// allow_url_fopen = On
// track_errors = On

$objIntelliSMS = new IntelliSMS();

$objIntelliSMS->AccessKey = "Yva$ER%Uhs+UU[MzwEYe";
$objIntelliSMS->SecretKey = "F{kQ^s`wVpm!EU~Bx8yB^A$N$[l{pxJA";

$Results = $objIntelliSMS->GetBalance();

$ErrorStatus = $Results["ErrorStatus"];
$Balance = $Results["Balance"];

?>

<< Back to PHP SDK