账户余额

读 1 分钟

account/balance

参数:

  • token - 授权令牌(字符串
  • currency - 符合 ISO 4217 标准的货币(字符串,默认值为账户货币)。取值:
    • rub - 卢布
    • usd - 美元
    • kzt - 哈萨克斯坦坚戈

方法调用示例:

<?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);
    }

// Результат:

{
    "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 :-(