A PHP library to communicate with Binero's (private & undocumented) mobile API.
<?php
use tsjost\Binero;
$username = '[email protected]';
$password = 'my_password';
$Binero = new Binero\Client;
$login = $Binero->login($username, $password);
if ( ! $login['success']) {
die('Unable to log in: '. $login['message']);
}
$DomainList = $Binero->getDomainList();
echo "There are ". $DomainList->getNumResults() ." domains!\n";
foreach ($DomainList->getDomains() as $Domain) {
echo " * ". $Domain->getName() ." (". $Domain->getExpireDateShort() .")\n";
}