Holiday Regions

List all possible holiday regions

SDK Function

HolidayRegion.getSupported()

Return Object

ListIterator<HolidayRegion>

Authorization Requirement

Available to all authenticated keys or sessions.

Additional Arguments

Example Request

import com.files.ListIterator;
import com.files.exceptions.*;
import com.files.exceptions.ApiErrorException.*;
import com.files.models.HolidayRegion;

try {
  HashMap<String, Object> parameters = new HashMap<>();
  ListIterator<HolidayRegion> holidayRegions = HolidayRegion.getSupported(parameters);
  for (HolidayRegion holidayRegion : holidayRegions.listAutoPaging()) {
    // Operate on holidayRegion
  }
} catch (NotAuthenticatedException e) {
  System.out.println("Authentication Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
} catch (SdkException e) {
  System.out.println("Unknown Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
}

The HolidayRegion Object

Some of the functions 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