Resource Description for IdentityCard

Properties for IdentityCard

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
active bool
cardNumber string
issuedDatetime DateTime
lostDatetime DateTime
owner mixed

SDK Example for PHP

<?PHP

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

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

$identityCard = IdentityCard::retrieve(5433);

$owner = $identityCard->getOwner();
$cardNumber = $identityCard->getCardNumber();
$active = $identityCard->getActive();
$issuedDatetime = $identityCard->getIssuedDatetime();
$lostDatetime = $identityCard->getLostDatetime();