Resource Description for Letter

Properties for Letter

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
actionRequiredByDatetime DateTime
draftRecipient MessageDraftRecipient
letterDate DateTime
preparedDatetime DateTime
receivedDate DateTime
recipient mixed
recipientName string
sender mixed
senderName string
sentDatetime DateTime
summary string

SDK Example for PHP

<?PHP

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

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

$letter = Letter::retrieve(5433);

$letterDraft = $letter->getLetterDraft();
$letterDate = $letter->getLetterDate();
$receivedDate = $letter->getReceivedDate();
$preparedDatetime = $letter->getPreparedDatetime();
$sentDatetime = $letter->getSentDatetime();
$senderName = $letter->getSenderName();
$sender = $letter->getSender();
$draftRecipient = $letter->getDraftRecipient();
$recipientName = $letter->getRecipientName();
$recipient = $letter->getRecipient();
$summary = $letter->getSummary();
$actionRequiredByDatetime = $letter->getActionRequiredByDatetime();

 

Related Resources