Holiday Regions

List all possible holiday regions

SDK Method

files_sdk.holiday_region.get_supported()

Return Object

ListObj[HolidayRegion]

Authorization Requirement

Available to all authenticated keys or sessions.

Additional Arguments

Example Request

import files_sdk

try:
  holiday_regions = files_sdk.holiday_region.get_supported()
  for holiday_region in holiday_regions.auto_paging_iter():
    # Operate on holiday_region
except files_sdk.error.NotAuthenticatedError as err:
  print(f"Authentication Error Occurred ({type(err).__name__}):", err)
except files_sdk.error.Error as err:
  print(f"Unknown Error Occurred ({type(err).__name__}):", err)

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