User Tools

Site Tools


Sidebar

en:objects:simnet:functional:get_balance

get_balance

get_balance(); - get the balance

After testing, the function returns the result of its work to the script :
  • balance on the service – current balance on the service

    Possible error:
    BAD_KEY - invalid API key
    ERROR_SQL - SQL server error



    PHP example:

    <?php $xhe_host = "127.0.0.1:7011";
     
     
    if(!isset($path))
       $path = "../../../Templates/xweb_human_emulator.php";
    require($path);
     
    echo "<hr> <font color = blue> simnet->".basename(__FILE__)."</font> <hr>";
     
    $simnet->api_key = '3161df9b1fe1ccb8cfd7dA91db765de8';
     
    echo $simnet->get_balance();
     
    echo "<hr> <br>";
     
    //Quit
    $app->quit();
    ?>

    Python example:

     

    C# example:

     

    Java Script example:

     
  • en/objects/simnet/functional/get_balance.txt · Last modified: 2026/08/05 22:47 (external edit)