Resource Description for PostalAddress

Properties for PostalAddress

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
address1 string
address2 string
address3 string
country Country
geocodeType string
lat float
lng float
postalCode string
postalState string
postalTown string

SDK Example for PHP

<?PHP

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

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

$postalAddress = PostalAddress::retrieve(5433);

$address1 = $postalAddress->getAddress1();
$address2 = $postalAddress->getAddress2();
$address3 = $postalAddress->getAddress3();
$postalTown = $postalAddress->getPostalTown();
$postalState = $postalAddress->getPostalState();
$postalCode = $postalAddress->getPostalCode();
$country = $postalAddress->getCountry();

 

Related Resources

See also: Country