<?php

include '../oneapi/client.php';
$customerProfileClient = new CustomerProfileClient(USERNAME, PASSWORD);
$customerProfileClient->login();
$customerProfile = $customerProfileClient->getCustomerProfile();
if (!$customerProfile->isSuccess()) {
    echo $customerProfile->exception;
    Logs::printLogs();
    die(0);
}
echo $customerProfile, "\n";
Logs::printLogs();
<?php

require_once '../oneapi/client.php';
$customerProfileClient = new CustomerProfileClient(USERNAME, PASSWORD);
$customerProfileClient->login();
$accountBalance = $customerProfileClient->getAccountBalance();
if (!$accountBalance->isSuccess()) {
    echo $accountBalance->exception;
    die;
}
echo 'accountBalance=', $accountBalance->balance, $accountBalance->currency->symbol;