<?php

require_once '../oneapi/client.php';
$smsClient = new SmsClient(USERNAME, PASSWORD);
$smsClient->login();
echo 'smsClient validity is ', $smsClient->isValid() ? 'true' : 'false', "\n";
$dataConnectionProfileClient = new DataConnectionProfileClient(USERNAME, 'wrongpassword');
$dataConnectionProfileClient->login();
echo 'dataConnectionProfileClient validity is ', $dataConnectionProfileClient->isValid() ? 'true' : 'false', "\n";
assert(true === $smsClient->isValid());
assert(false === $dataConnectionProfileClient->isValid());
<?php

require_once '../oneapi/client.php';
$client = new DataConnectionProfileClient(USERNAME, PASSWORD);
$client->login();
# example:retrieve-roaming-status-with-notify-url
$response = $client->retrieveRoamingStatus(DESTINATION_ADDRESS, NOTIFY_URL);
// if there is no error the query has been succesfully executed
if (!$response->isSuccess()) {
    echo 'Error:', $response->exception, "\n";
    Logs::printLogs();
}
# ----------------------------------------------------------------------------------------------------
echo $response;
echo NOTIFY_URL;