prefix = $prefix;
}
function init()
{
require_once $this->project->getProperty("project.basedir") . "/vendor/autoload.php";
}
function main()
{
$this->project->setProperty($this->prefix . ".version",
\Esendex\Model\Api::getVersion());
$this->project->setProperty($this->prefix . ".apiversion",
\Esendex\Model\Api::getApiVersion());
}
}
]]>
username = (string)$value;
}
function setPassword($value)
{
$this->password = (string)$value;
}
function setReference($value)
{
$this->reference = (string)$value;
}
function init()
{
require_once $this->project->getProperty("project.basedir") . "/vendor/autoload.php";
}
function main()
{
if (strlen($this->username) == 0 ||
strlen($this->password) == 0 ||
strlen($this->reference) == 0) {
print "\n\tCould not check access, need to provide Username, Password and Account Reference\n";
return;
}
$service = new \Esendex\CheckAccessService();
if ($service->checkAccess($this->reference, $this->username, $this->password)) {
print "\n\tAccount credentials OK!\n";
return;
}
print "\n\tCould not validate your credentials, check your input and retry\n";
}
}
]]>