-1
<?php
require __DIR__ . '/vendor/autoload.php';
$accessToken = "----------------------------";
use TotalVoice\Client as TotalVoiceClient;
$client = new TotalVoiceClient($accessToken);
$response = $client->perfil->consultaSaldo();
echo $response->getContent(); // {}
?>
the return
{"status":200,"success":true,"reason":0,"message":"current balance","data":{"balance":2.47}}
but I want to take only the balance:2.47