pytuflow.ArrApiClient.fetch#
- ArrApiClient.fetch(config)#
Requests data from the ARR Data Hub API for the given config’s site (a lat/lon point, or an uploaded catchment boundary - see
site.catchment_boundary), and returns the parsed response.- Parameters:
config (ArrConfig) – The ARR configuration to fetch data for. The site location (or catchment boundary) and
ArrConfig.max_retriesare taken from this object.- Returns:
The parsed ARR Data Hub response.
- Return type:
ArrApiResponse
- Raises:
ArrApiError – If the request fails (after exhausting any retries) or the response is not valid JSON.