sendAPIQuery

external fun sendAPIQuery(query: APIQueryParams, cache: APICacheOptions? = definedExternally): Promise<dynamic>

Send an API query and return the response body as text.

Returns { success: true, content } for HTTP 200, otherwise { success: false, error, response? }. With cache, responses are stored in cache.dir for cache.ttl seconds and reused while valid.