Holiday Regions

List all possible holiday regions

SDK Method

\Files\Model\HolidayRegion::getSupported;

Return Object

HolidayRegion[]

Authorization Requirement

Available to all authenticated keys or sessions.

Additional Arguments

Example Request

try {
  $holiday_regions = \Files\Model\HolidayRegion::getSupported();
  foreach ($holiday_regions as $holiday_region) {
    // Operate on $holiday_region
  }
} catch (\Files\NotAuthenticated\InvalidUsernameOrPasswordException $e) {
  echo 'Authentication Error Occurred (' . get_class($e) . '): ', $e->getMessage(), "\n";
} catch (\Files\FilesException $e) {
  echo 'Unknown Error Occurred (' . get_class($e) . '): ', $e->getMessage(), "\n";
}

The HolidayRegion Object

Some of the methods above return a HolidayRegion object. The attributes of this object are listed below.

AttributeDescription
code
string
The code representing a region
name
string
The name of the region