Function call_api_endpoint

Source
pub async fn call_api_endpoint<'a>(
    series_code: &String,
    description: &Option<String>,
    params: Vec<Param<'a>>,
    additional_params: Option<String>,
) -> Result<IADBSeries, Error>
Expand description

Constructs a URL for API request, sends the request, and returns the deserialzied response.

ยงInput

  • series_code: Code of the time series in the IADB.
  • params: List of parameters expected by the IADB API endpoint
  • additional_params: Additional parameters to add to the request