fetchAggregator

suspend fun fetchAggregator(url: String, ctx: RetrievalContext? = null): <Error class: unknown class><<Error class: unknown class>>

Fetch and parse an aggregator JSON document from a given URL.

Return

An instance of Aggregator, wrapped in a Result monad, if successful. A failed Result wrapping the thrown Throwable in case of an error.

Parameters

url

The URL where the aggregator document is found.

ctx

An optional RetrievalContext that is automatically filled with the HTTP response and body of the calls made in this function.