Account balance

account/balance

Options:

  • token - authorization (string)
  • currency - currency according to standard ISO 4217 (string, default: account currency). Values:
    • rub - rubles
    • usd - dollars
    • kzt - kazakhstani tenge

Method call example:

<?php
    $post = array(
        'token' => $token,
        'currency' => 'usd'
    );
    if ($curl = curl_init()) {
        curl_setopt($curl, CURLOPT_URL, 'https://www.ipweb.ru/api/v2/account/balance');
        curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
        curl_setopt($curl, CURLOPT_POST, true);
        curl_setopt($curl, CURLOPT_POSTFIELDS, $post);
        $out = curl_exec($curl);
        echo $out;
        curl_close($curl);
    }

// Result:

{
    "currency": "KZT",
    "balance": 509994.24
}
IPweb

Rate the material:

Rating: 0 out of 5. Total ratings: 0.
Last modified

I don't understand anything! Help :-(
-