Resource Description for EmailAccount

Properties for EmailAccount

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
owner mixed
password string
serverEncryption string
serverHost string
serverPort int
serverType string
username string

SDK Example for PHP

<?PHP

use Arbor\Api\Gateway\RestGateway;
use Arbor\Model\ModelBase;
use Arbor\Model\EmailAccount;

ModelBase::setDefaultGateway(
    new RestGateway(
        "https://my-school.arbor.sc/rest-v2",
        "my.username@my-school.arbor.sc",
        "3bh54435v3gh45"
    )
);

$emailAccount = EmailAccount::retrieve(5433);

$serverType = $emailAccount->getServerType();
$serverHost = $emailAccount->getServerHost();
$serverPort = $emailAccount->getServerPort();
$serverEncryption = $emailAccount->getServerEncryption();
$username = $emailAccount->getUsername();
$password = $emailAccount->getPassword();
$owner = $emailAccount->getOwner();