* @throws InvocationTargetException if internal errors occurs.
* @throws IllegalAccessException if internal errors occurs.
*/
public final UPForecast getPlaceForecasts(final String identifier, final String model, final String output, final UPDateTime time) throws IOException, UPInvalidParameterException, NoSuchMethodException, InvocationTargetException, IllegalAccessException {
if (identifier==null || identifier.isEmpty()) {
throw new UPInvalidParameterException("Identifier can not be null or an empty string");
} else if (model==null || model.isEmpty()) {
throw new UPInvalidParameterException("Model can not be null or an empty string");
} else if (output==null || output.isEmpty()) {
throw new UPInvalidParameterException("Output can not be null or an empty string");
} else if (time==null) {
throw new UPInvalidParameterException("The time must be specified in this API");
}
this.setUrl("https://api.uniparthenope.it/meteo/"+identifier+"/"+model+"/"+output+"/"+time.getYear()+"/"+time.getMonth()+"/"+time.getDay()+"/"+time.getHour()+"/modeloutput");
return this.parseJsonForecasts();
}