POSTS
PORTFOLIO
SEARCH
SHOP
  • Your Cart Is Empty!
1947 Evans Road Cary, NC 27513 +1 (919) 443-1617
API command for developers
Looking for telecom solutions without needing a developer? Our user portal has you covered! 
  • Text Hover
Managing your Account with the API
The API provides a number of commands to help you manage your money on a Questblue customer account.
To look at your current rates you can run the command accountRates() with no parameters.

You can modify your refill settings with three different functions, and check your balance with the accountGetBalance() function.

accountSetRefill() enables or disables automatic refill with "disable" or "enable" as the parameters.

accountRefill() refills when ran with a minimum amount of $10.
$api->accountRefill(25);

accountRefillConfig() will modify when and for how much you refill your account:
minimum balance before reload: can be 5, 25, 30, 35, 40, 45, 50
how much to refill: 25, 50, 60, 70, 80, 90, 100, 200, 300, 400, 500

EXAMPLE:
<?php
$api = new QBapi();
$rates = $api->accountRates();
$balance = $api->accountGetBalance();
$autoRe = $api->accountSetRefill("enable");
$config = $api->accountRefillConfig(50,100);
echo '<pre>';
print_r($rates);
print_r($balance);
print_r($config);
print_r($autoRe);
?>