Resource Description for Country

Properties for Country

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
active bool
appliesToPostalAddress bool
code string
dataOrder int
iso31661Alpha2 string
iso31661Alpha3 string
iso31661Numeric string
longName string
note string
shortName string

SDK Example for PHP

<?PHP

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

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

$country = Country::retrieve(5433);

$code = $country->getCode();
$active = $country->getActive();
$dataOrder = $country->getDataOrder();
$shortName = $country->getShortName();
$longName = $country->getLongName();
$iso31661Alpha2 = $country->getIso31661Alpha2();
$iso31661Alpha3 = $country->getIso31661Alpha3();
$iso31661Numeric = $country->getIso31661Numeric();
$note = $country->getNote();