POST
get_balance
#
Returns the amount of available funds.
Parameters
Only the key and the action.
Answer
-
balancefloatAvailable money on the balance, in roubles
-
freezefloatMoney held on active tasks, in roubles
Request
curl -X POST https://unutasks.com/api \ -d 'api_key=YOUR_API_KEY' \ -d 'action=get_balance'
$ch = curl_init('https://unutasks.com/api'); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_POSTFIELDS => [ 'api_key' => 'YOUR_API_KEY', 'action' => 'get_balance', ], ]); $answer = json_decode(curl_exec($ch), true);
import requests answer = requests.post('https://unutasks.com/api', data={ 'api_key': 'YOUR_API_KEY', 'action': 'get_balance', }).json()
Answer
{
"success": true,
"errors": "",
"balance": 12153.63,
"freeze": 334.4
}