Resource Description for HouseMembership

Properties for HouseMembership

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
endDate DateTime
house House
startDate DateTime
student Student

SDK Example for PHP

<?PHP

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

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

$houseMembership = HouseMembership::retrieve(5433);

$house = $houseMembership->getHouse();
$student = $houseMembership->getStudent();
$startDate = $houseMembership->getStartDate();
$endDate = $houseMembership->getEndDate();

 

Related Resources

See also: House, Student